ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Hi i am trying to get the selection.count of a grouped object i have 3 objects in 1 group
it returns a value of 4 but i need it to just count 1 since its 1 group and not the objects in the group.
in case where you need to find group count you can try this
(for i in selection where isGroupHead i collect i).count
The other case will be when you have groupe inside group ei. group as other group member. If you don't want to include this group in the count use next line
(for i in selection where isGroupHead i and not isGroupmember i collect i).count
Comments
...
in case where you need to find group count you can try this
The other case will be when you have groupe inside group ei. group as other group member. If you don't want to include this group in the count use next line
bga
thank you
thank you worked like a charm!!!