EditModel3D.SetActiveParent

This page contains reference documentation for the SetActiveParent function. This function sets a group as the active parent in the scene graph.

Prototype

int SetActiveParent( Group NewParentGroup )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

// Set the selected group, mesh, or level-of-detail node as Active Parent.

Node node = Model.GetSelectedNode( i ).GetNode();

if( node.IsDerived( Group ) )
{
   Model.SetActiveParent ( (Group)node );
}

Working Sample Code

For sample code: