| mayaVersion () | |||||||||||
MMayaState
| |||||||||||
| mayaState ( MStatus * ReturnStatus = NULL ) | |||||||||||
| getFunctionSetList ( MObject forObject, MStringArray & array ) | |||||||||||
| getAssociatedSets ( MSelectionList & list, MObjectArray & setArray ) | |||||||||||
| getSelectionListByName ( const MString & name, MSelectionList &list ) | |||||||||||
ListAdjustment
| |||||||||||
| getActiveSelectionList ( MSelectionList & dest ) | |||||||||||
| getLiveList ( MSelectionList & dest ) | |||||||||||
| getHiliteList ( MSelectionList & dest ) | |||||||||||
| setHiliteList ( MSelectionList & src ) | |||||||||||
| setActiveSelectionList ( MSelectionList & src, ListAdjustment = kReplaceList ) | |||||||||||
| setDisplayCVs ( MSelectionList &, bool ) | |||||||||||
| selectCommand ( MSelectionList & src, ListAdjustment = kReplaceList ) | |||||||||||
| selectByName ( const MString & name, ListAdjustment = kAddToList ) | |||||||||||
| unselectByName ( const MString & name ) | |||||||||||
| select ( MObject & object, ListAdjustment = kAddToList ) | |||||||||||
| select ( MDagPath & object, MObject & component, ListAdjustment = kAddToList ) | |||||||||||
| unselect ( MObject & object ) | |||||||||||
| unselect ( MDagPath & object, MObject & component ) | |||||||||||
| selectFromScreen ( short& x_pos, short& y_pos, ListAdjustment = kAddToList ) | |||||||||||
| selectFromScreen ( short& start_x, short& start_y, short& end_x, short& end_y, ListAdjustment = kAddToList ) | |||||||||||
MSelectionMode
| |||||||||||
| selectionMode ( MStatus * ReturnStatus = NULL ) | |||||||||||
| setSelectionMode ( MSelectionMode mode ) | |||||||||||
| objectSelectionMask ( MStatus * ReturnStatus = NULL ) | |||||||||||
| setObjectSelectionMask ( MSelectionMask & mask ) | |||||||||||
| componentSelectionMask ( MStatus * ReturnStatus = NULL ) | |||||||||||
| setComponentSelectionMask ( MSelectionMask & mask ) | |||||||||||
| animSelectionMask ( MStatus * ReturnStatus = NULL ) | |||||||||||
| setAnimSelectionMask ( MSelectionMask & mask ) | |||||||||||
| miscSelectionMask ( MStatus * ReturnStatus = NULL ) | |||||||||||
| setMiscSelectionMask ( MSelectionMask & mask ) | |||||||||||
| clearSelectionList () | |||||||||||
| isSelected ( MObject & object, MStatus * ReturnStatus = NULL ) | |||||||||||
| viewFrame ( const MTime & time ) | |||||||||||
| viewFrame ( double time) | |||||||||||
| sourceFile ( const MString & fileName ) | |||||||||||
| executeCommandOnIdle ( const MString & command, bool displayEnabled = false) | |||||||||||
| executeCommand ( const MString & command, bool displayEnabled = false, bool undoEnabled = false) | |||||||||||
| executeCommand ( const MString & command, MCommandResult & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executeCommand ( const MString & command, int& result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executeCommand ( const MString & command, MIntArray & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executeCommand ( const MString & command, double& result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executeCommand ( const MString & command, MDoubleArray & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executeCommand ( const MString & command, MString & result, bool displayEnabled = false, bool undoEnabled = false ) NO SCRIPT SUPPORT | |||||||||||
| executeCommandStringResult ( const MString & command, bool displayEnabled = false, bool undoEnabled = false, MStatus * ResultStatus = NULL) | |||||||||||
| executeCommand ( const MString & command, MStringArray & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommand ( const MString & command, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommand ( const MString & command, int& result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommand ( const MString & command, MIntArray & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommand ( const MString & command, double& result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommand ( const MString & command, MDoubleArray & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommandStringResult ( const MString & command, bool displayEnabled = false, bool undoEnabled = false, MStatus * ReturnStatus = NULL) NO SCRIPT SUPPORT | |||||||||||
| executePythonCommand ( const MString & command, MString & result, bool displayEnabled = false, bool undoEnabled = false ) NO SCRIPT SUPPORT | |||||||||||
| executePythonCommand ( const MString & command, MStringArray & result, bool displayEnabled = false, bool undoEnabled = false ) | |||||||||||
| executePythonCommandOnIdle ( const MString & command, bool displayEnabled = false) | |||||||||||
| addToModel ( MObject & object, MObject & parent = MObject::kNullObj ) | |||||||||||
| addToModelAt ( MObject &, const MVector & point, const double scale[3] = NULL, const double rotation[3] = NULL, MTransformationMatrix::RotationOrder order = MTransformationMatrix::kXYZ ) | |||||||||||
| removeFromModel ( MObject & ) | |||||||||||
| deleteNode ( MObject & ) | |||||||||||
| setYAxisUp ( bool rotateView = false ) | |||||||||||
| setZAxisUp ( bool rotateView = false ) | |||||||||||
| isYAxisUp ( MStatus * = NULL ) | |||||||||||
| isZAxisUp ( MStatus * = NULL ) | |||||||||||
| upAxis ( MStatus * = NULL ) | |||||||||||
| displayInfo ( const MString & theMessage ) | |||||||||||
| displayWarning ( const MString & theWarning ) | |||||||||||
| displayError ( const MString & theError ) | |||||||||||
| setDisableStow ( bool state ) | |||||||||||
| disableStow ( ) | |||||||||||
| optionVarIntValue (const MString & name, bool *result = NULL ) setting & getting option variable values | |||||||||||
| optionVarDoubleValue (const MString & name, bool *result = NULL) | |||||||||||
| optionVarStringValue (const MString & name, bool *result = NULL) | |||||||||||
| setOptionVarValue (const MString & name, int value) | |||||||||||
| setOptionVarValue (const MString & name, double value) | |||||||||||
| setOptionVarValue (const MString & name, MString value) | |||||||||||
| defaultErrorLogPathName ( MStatus * ReturnStatus = NULL ) | |||||||||||
| resetToDefaultErrorLogPathName () | |||||||||||
| setErrorLogPathName ( const MString & logPathName ) | |||||||||||
| errorLogPathName ( MStatus * ReturnStatus = NULL ) | |||||||||||
| startErrorLogging () | |||||||||||
| startErrorLogging ( const MString & logPathName ) | |||||||||||
| errorLoggingIsOn ( MStatus * ReturnStatus = NULL ) | |||||||||||
| stopErrorLogging () | |||||||||||
| closeErrorLog () | |||||||||||
| doErrorLogEntry ( const MString & errorLogEntry ) | |||||||||||
| isUndoing () | |||||||||||
| isRedoing () | |||||||||||
| getOptionVarValue (const MString & name, int& value) OBSOLETE & NO SCRIPT SUPPORT | |||||||||||
| getOptionVarValue (const MString & name, double& value) OBSOLETE & NO SCRIPT SUPPORT | |||||||||||
| getOptionVarValue (const MString & name, MString & value) OBSOLETE & NO SCRIPT SUPPORT |
MStatus testCommand::doIt()
{
MSelectionList sList;
MString toMatch ("pCube*|pCubeShape*");
MGlobal::getSelectionListByName(toMatch, sList);
unsigned int ii = 0;
unsigned int nMatches = sList.length();
for (ii = 0; ii < nMatches; ++ii) {
MDagPath dp;
sList.getDagPath(ii, dp);
cout << dp.fullPathName() << endl;
}
return MS::kSuccess ;
}
For the case where a polyCube (pCube1) is the parent of another polyCube
(pCube2), the output of the above example would be as follows: | Autodesk® Maya® 8.0 © 1997-2006 Autodesk, Inc. All rights reserved. | doc++ Copyright |