This is post is about a little observation I have made (probably not the first person) about groups in 3ds Max and their relationship to MAXScript.
Ever since I looked at the MAXScript reference in regards to groups, I now think of articles like this:
My observation comes from when you are creating them (at least from scratch anyway) and it may provide an small insight to how they could be dealt with if you have to use them.
So if you have 3ds max then follow these steps:
- In a new scene, create a few primitives (these can be anything as this is just a test).
- Group your new primitives together (Group > Group…) and name that group (can be anything).
- Now open up the MAXScript listener (MAXScript > MAXScript Listener… or press F11). Make sure your group is still selected.
and you will notice that it is the name of your group (if it is not then just re-select the group again and re-type out
- Now repeat steps 1-4 and you should get the name of the group again.
- You may also want to type
(make sure your group is selected as the
isGroupHeadmethod requires a node which in this case is your selection) and it should return true!
So what does this tell us? It tells us that a newly created group’s “head” node is (EDIT: always seems to be) in the 2nd index (the 2nd slot) of the group, (or the array as that is technically what a group is) hence why we used
What is a Group then?
A Group in 3ds Max is an “invisible” dummy object that has been created to become the parent of the objects in the group.
The name of the group comes from the group’s head node (the dummy object) and If you open up a schematic view (Graph Editors > New Schematic View… or Saved Schematic Views if you already have one), then you should be able to visually see the hierarchy 🙂
So in short, if you are using Groups in 3ds Max, take caution and if you trying to script with them then hopefully this has been informative for you and please don’t hesitate to comment on my observation!