EditModel3D.DeselectAll

This page contains reference documentation for the DeselectAll function. This function deselects all the selected nodes in the scene graph.

Prototype

int DeselectAll()

Examples

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] );
      }
   }
}

Working Sample Code

For sample code: