Go to: Synopsis. Return value. MEL examples.

Synopsis

getSelectedNObjs( string $type )

With nDynamics objects it can be useful to get selected nodes indirectly. For example if the output mesh of an nCloth node is selected then calling this with "nCloth" will return the nCloth node, not the mesh. One can also get all the nodes of a given type connected to a selected nucleus node.

Return value

None

Arguments

Variable Name Variable Type Description
$typestringThis is the nodetype to return, for example "nCloth", "nRigid", "nParticle", or "nucleus".

MEL examples

  string $clothObjs[] = getSelectedNObjs( "nCloth" );