MAXScript: getting the group a object is in

By - - 3ds Max

There is a MAXScript command to figure out whether an object is part of a group:
isGroupMember <node>

But I needed to know which group it was in. And there is no whichGroupAmIIn <node> function...

There is no need for the function because groups are basically a form of hierarchy, so you can just use <node>.parent to find the parent.

To check you have the group you can check the class and superclass:

Classof should return Dummy and superclassof should return helper.

Posted By
Published In
Tags
  • 3ds Max
  • Film & VFX
  • Games
  • Design Visualization
0 Comments
To post a comment please login or register
*Save $66 per month on Autodesk's Suggested Retail Price (SRP) when purchasing 1 year term 3ds Max or Maya subscription.