Creates one or more <Node> objects of the type indicated by 'NodeType'. If one or more <Group> node objects (or derived class objects) are selected, a new <Node> is created for each selected <Group> (or derived object). Otherwise one new <Node> is created and it is placed under the default parent of the model indicated by Model.
static int32 CreateNodes( EditModel3D p_oModel, TypeInformation p_oNodeType, string p_sNodeName, NodeBuffer p_oCreatedNodes, int32 p_nChildIndex )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<EditModel3D> | p_oModel | The model to place the created <Node> object(s) in. |
TypeInformation | p_oNodeType | The type of <Node> objects to create. |
string | p_sNodeName | The name to be used for the new <Node> objects. |
<NodeBuffer> | p_oCreatedNodes | A <List> to place the created <Node> objects in. This parameter can be used to access the list of <Node> objects that were created and perform further processing on them. This parameter may be null, in which case the <List> of <Node> objects is not returned. |
int32 | p_nChildIndex | This parameter specifies the child index at which to create the <Node> objects. |
None published. Please look for an example in the Scenome Scripting Language code base.