3
$\begingroup$

There is an object shared between Blender scenes. So the same object appears more than one scenes (see below).
Is there a way to unlink the object from a specific scene? In my case I would like to remove the Cube.001 from Scene.001.

enter image description here

There is Make Links - Object To Scene command and we can use it to add objects to another scene (see below). So I search for kind of an opposite action.

enter image description here

$\endgroup$
2
$\begingroup$

While the active scene is Scene.001 select Cube.001 and press X. You can also right-click RMB on the object in the outliner and choose Delete.

Deleting an object only applies to the current scene, any other "copies" in other scenes will still remain there.

You can link the object back to Scene.001 by selecting it in Scene and pressing ⎈ CtrlL->Objects to Scene->Scene.001

You can also remove the object using python, you can type the following into blender's python console or paste it into blender's text editor and click run script. Changing unlink to link will let you replace the object back into Scene.001.

bpy.data.scenes['Scene.001'].objects.unlink(bpy.data.objects['Cube.001'])
$\endgroup$
-3
$\begingroup$

bpy.data.objects.remove(bpy.context.scene.objects[id], do_unlink = True)

$\endgroup$
  • 7
    $\begingroup$ Could you elaborate more on this? How to use it, where to paste it? It could not be so clear for everybody. $\endgroup$ – cgslav Feb 25 '17 at 22:16
  • $\begingroup$ As far as I understood, you need to do that in Python, right? If so, place it at the point where you need it removed. Replace id with some identifier to actually get the object. If you need to do that manually, just delete button should work, doesn't it? $\endgroup$ – D. Skarn Feb 25 '17 at 23:41
  • $\begingroup$ I'm not OP of this question. Please add more information with Edit option. $\endgroup$ – cgslav Feb 25 '17 at 23:43
  • $\begingroup$ This will remove the object from every scene - the question specifically wants to delete it from only one scene. $\endgroup$ – sambler Feb 26 '17 at 5:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.