Deleting or adding an object from/to instanced groups

I have created group of many objects and have copied the group several times to make instances....

I want a script to do the following
if i have selected a certain object from the first group
once i run the script
it should open all the groups
and should pick the same objects in the other group

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
LittleLordPotala's picture

Selection of instanced objects between groups

  1. obj = $
  2. max create mode
  3. sel = for i in geometry where areNodesInstances obj i collect
  4. (
  5. if isGroupMember i do if isOpenGroupMember i == false do
  6. (select i; max group open)
  7. i
  8. )
  9. select sel

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.