def __init__(self, scene: core.Scene):
    self.objects_to_blend = bidict.bidict()
    self.ambient_node = None
    self.ambient_hdri_node = None
    self.illum_mapping_node = None
    self.bg_node = None
    self.bg_hdri_node = None
    self.bg_mapping_node = None
    self.clear_and_reset()
    bpy.context.scene.render.engine = 'CYCLES'
    self.add(scene)
    self.set_up_scene_shading()
    bpy.context.scene.cycles.use_adaptive_sampling = True
    bpy.context.scene.view_layers[0].cycles.use_denoising = True
def __init__(self, scene: core.Scene):
    self.objects_to_blend = bidict.bidict()
    self.ambient_node = None
    self.ambient_hdri_node = None
    self.illum_mapping_node = None
    self.bg_node = None
    self.bg_hdri_node = None
    self.bg_mapping_node = None
    self.clear_and_reset()
    bpy.context.scene.render.engine = 'CYCLES'
    self.add(scene)
    self.set_up_scene_shading()
    bpy.context.scene.cycles.use_adaptive_sampling = True
    bpy.context.scene.view_layers[0].cycles.use_denoising = True