I want the create a new scene, link all my objects and change some layers only on the new one and I don’t know what’s wrong with this script:
multilight_scene = bpy.data.scenes.new(name="Multilight") for obj in context.scene.objects: obj.select = True bpy.ops.object.make_links_scene(scene=multilight_scene.name) for obj in multilight_scene.objects: obj.layers = True
The layers of the objects aren’t set on my new scene but in the old one even if I switch to the new one before with bpy.context.screen.scene=bpy.data.scenes[multilight_scene.name]
Why? I really don’t understand.