EditModel3D.AddNode

This page contains reference documentation for the AddNode function. This function adds a node to the scene graph beneath the specified parent, and at the position specified.

Prototype

int AddNode( Node NewNode, Group NewParent, int ChildIndex )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

// This function adds a node to the scene graph at the end of the child list for the selected node.

function int AddNode( Node new_node, Group parentNode )
{
   Model.AddNode( new_node, parentNode, -1 );
   Model.Deselect( parentNode );
   return 1;
}

Working Sample Code

For sample code: