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.
int AddNode( Node NewNode, Group NewParent, int ChildIndex )
Function parameters are as follows:
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;
}
For sample code: