1
$\begingroup$

I thought Shift+Alt+G (Remove Selected from Active Collection) was just a change to a collection.
I read the official manual and understood it.
enter image description here

But in fact, the way this function works in the blender is not only removing the selected objects from the collection to which the active object belong, but also the active object.
Please check the GIF.

enter image description here
What do I misunderstand?

The result I expected was as follows. enter image description here


Additional Question
If so, how to check the active collection in Blender UI?
When checked with bpy.context.view_layer.active_layer_collection.name, the last clicked collection in the outliner is displayed.
enter image description here

This will also be displayed in the top left of the 3D viewport.
However, the active collection that the collection allocation operations mean seems to mean the collection to which the last selected active object belongs, not the last selected collection in the outliner.
I am curious how to check this active collection in UI.
enter image description here

Solution: Ah, this was simple and basic.
To easily check the list of active collections to be used in the collection assignment operation, check the property editor\Object tab\Collections panel.
enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

This is functioning properly, but you must understand two concepts:

  1. The active object is one of the selected objects, always
  2. If you remove an object from all the collections in a scene, it will appear as though they have been destroyed, although they are still present in the file memory. It can also still be loaded in another scene's collection.

The way I see it, Add Selected to Active Collection should be relabeled to Add Selected Objects to Active Object's Collection(s). In fact, if your active object is part of several collections, the UI will ask you to which one you want to add the selected objects, or if you want to add them to every one of these collections.

Similarly, Remove Selected from Active Collection should be relabeled to Remove Selected Objects from Active Object's Collection(s). It also prompts the user whith which collection they want to remove the selected objects from.

However, if by doing so you remove one or several objects from their last container collection in the scene, it will effectively disappear from said scene. You can see they are still in the file if you change the outliner display mode from view layer to Orphan data. You can then manually re-add it in your scene.

I agree that there should be a warning if you are removing an object from its last collection saying something like "Warning : This will remove this object from the scene"

To do what you want to achieve in your last set of screenshots, you just have to deselect the cone and call the operator.

$\endgroup$
1
  • $\begingroup$ Thank you. I didn't know that the active object was included in the selected objects. So the way to run the collection operation after deselecting the active object works for me. $\endgroup$ Commented Aug 6, 2020 at 2:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .