There are four basic actions when it comes to working with groups:
The next four sections provide demonstrations of how to do each of these actions, and all four code fragments may be run at once.
To create a group with native Softimage commands
' Create a new model called "MyModel" Set oModel = GetPrim( "Null", "MyModel" ) ' Create a new polymesh sphere called "MySphere" Set oSphere = CreatePrim( "Sphere", _ "MeshSurface", "MySphere" ) ' Create a new group containing the model and sphere Set oGroup = CreateGroup( "MyGroup", oSphere & ", " _ & oSphere & ".polymsh.cls.Point", oModel )
To add items to a group with native Softimage commands
' Create a torus called "MyTorus" Set oTorus = CreatePrim( "Torus", _ "MeshSurface", "MyTorus" ) ' Add it to the group AddToGroup oGroup, oTorus