CreateNodes Data Member Function

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.

Prototype

static int32 CreateNodes( EditModel3D p_oModel, TypeInformation p_oNodeType, string p_sNodeName, NodeBuffer p_oCreatedNodes, int32 p_nChildIndex )

Parameters

Parameter Type Parameter Name Documentation
<EditModel3D>p_oModelThe model to place the created <Node> object(s) in.
TypeInformationp_oNodeTypeThe type of <Node> objects to create.
stringp_sNodeNameThe name to be used for the new <Node> objects.
<NodeBuffer>p_oCreatedNodesA <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.
int32p_nChildIndexThis parameter specifies the child index at which to create the <Node> objects.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.