Notifications
Clear all

[Closed] Objects not in groups

What is the right way to find objects in the scene that are NOT grouped?

4 Replies

arr = for o in objects where not (isgroupmember o or isgrouphead o) collect o


3 Replies
(@papigiulio)
Joined: 11 months ago

Posts: 0

rockstar! Thank you so much.

(@miauu)
Joined: 11 months ago

Posts: 0

To cover open groups you have to ause this:


arr = for o in objects where not (isgroupmember o or isgrouphead o or isOpenGroupMember o or isOpenGroupHead o) collect o

(@ivanisavich)
Joined: 11 months ago

Posts: 0

No, isGroupHead and isGroupMember return true for grouped objects even if the group is open.