This page contains reference documentation for the DeselectAll function. This function deselects all the selected nodes in the scene graph.
int DeselectAll()
Examples are as follows:
{
Model.DeselectAll();
int selectCount = Model.GetSelectCount();
for( int s = 0; s < selectCount; ++s )
{
Node node = Model.GetSelectedNode( s ).GetNode();
Group parent = node.Parent();
int startIndex = parent.GetChildIndex( node );
for( int c = startIndex; c < parent.ChildCount; ++c )
{
Model.Select( parent.Children[c] );
}
}
}
For sample code: