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.
' 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 )
' Create a torus called "MyTorus" Set oTorus = CreatePrim( "Torus", _ "MeshSurface", "MyTorus" ) ' Add it to the group AddToGroup oGroup, oTorus
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License