static MString | mayaVersion () | ||||||||||
static int | apiVersion () | ||||||||||
enum | MMayaState
| ||||||||||
static MMayaState | mayaState ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | getFunctionSetList ( MObject forObject, MStringArray & array ) | ||||||||||
static MStatus | getAssociatedSets ( MSelectionList & list, MObjectArray & setArray ) | ||||||||||
static MStatus | getSelectionListByName ( const MString & name, MSelectionList &list ) | ||||||||||
enum | ListAdjustment
| ||||||||||
static MStatus | getActiveSelectionList ( MSelectionList & dest ) | ||||||||||
static MStatus | getLiveList ( MSelectionList & dest ) | ||||||||||
static MStatus | getHiliteList ( MSelectionList & dest ) | ||||||||||
static MStatus | setHiliteList ( MSelectionList & src ) | ||||||||||
static MStatus | setActiveSelectionList ( MSelectionList & src, ListAdjustment = kReplaceList ) | ||||||||||
static MStatus | setDisplayCVs ( MSelectionList &, bool ) | ||||||||||
static MStatus | selectCommand ( MSelectionList & src, ListAdjustment = kReplaceList ) | ||||||||||
static MStatus | selectByName ( const MString & name, ListAdjustment = kAddToList ) | ||||||||||
static MStatus | unselectByName ( const MString & name ) | ||||||||||
static MStatus | select ( MObject & object, ListAdjustment = kAddToList ) | ||||||||||
static MStatus | select ( MDagPath & object, MObject & component, ListAdjustment = kAddToList ) | ||||||||||
static MStatus | unselect ( MObject & object ) | ||||||||||
static MStatus | unselect ( MDagPath & object, MObject & component ) | ||||||||||
static MStatus | selectFromScreen ( short& x_pos, short& y_pos, ListAdjustment = kAddToList ) | ||||||||||
static MStatus | selectFromScreen ( short& start_x, short& start_y, short& end_x, short& end_y, ListAdjustment = kAddToList ) | ||||||||||
enum | MSelectionMode
| ||||||||||
static MSelectionMode | selectionMode ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | setSelectionMode ( MSelectionMode mode ) | ||||||||||
static MSelectionMask | objectSelectionMask ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | setObjectSelectionMask ( MSelectionMask & mask ) | ||||||||||
static MSelectionMask | componentSelectionMask ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | setComponentSelectionMask ( MSelectionMask & mask ) | ||||||||||
static MSelectionMask | animSelectionMask ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | setAnimSelectionMask ( MSelectionMask & mask ) | ||||||||||
static MSelectionMask | miscSelectionMask ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | setMiscSelectionMask ( MSelectionMask & mask ) | ||||||||||
static MStatus | clearSelectionList () | ||||||||||
static bool | isSelected ( MObject & object, MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | viewFrame ( const MTime & time ) | ||||||||||
static MStatus | viewFrame ( double time) | ||||||||||
static MStatus | sourceFile ( const MString & fileName ) | ||||||||||
static MStatus | executeCommandOnIdle ( const MString & command, bool displayEnabled = false) | ||||||||||
static MStatus | executeCommand ( const MString & command, bool displayEnabled = false, bool undoEnabled = false) | ||||||||||
static MStatus | executeCommand ( const MString & command, MCommandResult & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executeCommand ( const MString & command, int& result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executeCommand ( const MString & command, MIntArray & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executeCommand ( const MString & command, double& result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executeCommand ( const MString & command, MDoubleArray & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executeCommand ( const MString & command, MString & result, bool displayEnabled = false, bool undoEnabled = false ) NO SCRIPT SUPPORT | ||||||||||
static MString | executeCommandStringResult ( const MString & command, bool displayEnabled = false, bool undoEnabled = false, MStatus * ResultStatus = NULL) | ||||||||||
static MStatus | executeCommand ( const MString & command, MStringArray & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executePythonCommand ( const MString & command, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executePythonCommand ( const MString & command, int& result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executePythonCommand ( const MString & command, MIntArray & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executePythonCommand ( const MString & command, double& result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executePythonCommand ( const MString & command, MDoubleArray & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MString | executePythonCommandStringResult ( const MString & command, bool displayEnabled = false, bool undoEnabled = false, MStatus * ReturnStatus = NULL) NO SCRIPT SUPPORT | ||||||||||
static MStatus | executePythonCommand ( const MString & command, MString & result, bool displayEnabled = false, bool undoEnabled = false ) NO SCRIPT SUPPORT | ||||||||||
static MStatus | executePythonCommand ( const MString & command, MStringArray & result, bool displayEnabled = false, bool undoEnabled = false ) | ||||||||||
static MStatus | executePythonCommandOnIdle ( const MString & command, bool displayEnabled = false) | ||||||||||
static MStatus | addToModel ( MObject & object, MObject & parent = MObject::kNullObj ) | ||||||||||
static MStatus | addToModelAt ( MObject &, const MVector & point, const double scale[3] = NULL, const double rotation[3] = NULL, MTransformationMatrix::RotationOrder order = MTransformationMatrix::kXYZ ) | ||||||||||
static MStatus | removeFromModel ( MObject & ) | ||||||||||
static MStatus | deleteNode ( MObject & ) | ||||||||||
static MStatus | setYAxisUp ( bool rotateView = false ) | ||||||||||
static MStatus | setZAxisUp ( bool rotateView = false ) | ||||||||||
static bool | isYAxisUp ( MStatus * = NULL ) | ||||||||||
static bool | isZAxisUp ( MStatus * = NULL ) | ||||||||||
static MVector | upAxis ( MStatus * = NULL ) | ||||||||||
static void | displayInfo ( const MString & theMessage ) | ||||||||||
static void | displayWarning ( const MString & theWarning ) | ||||||||||
static void | displayError ( const MString & theError ) | ||||||||||
static void | setDisableStow ( bool state ) | ||||||||||
static bool | disableStow ( ) | ||||||||||
static int | optionVarIntValue (const MString & name, bool *result = NULL ) setting & getting option variable values | ||||||||||
static double | optionVarDoubleValue (const MString & name, bool *result = NULL) | ||||||||||
static MString | optionVarStringValue (const MString & name, bool *result = NULL) | ||||||||||
static bool | setOptionVarValue (const MString & name, int value) | ||||||||||
static bool | setOptionVarValue (const MString & name, double value) | ||||||||||
static bool | setOptionVarValue (const MString & name, MString value) | ||||||||||
static MString | defaultErrorLogPathName ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | resetToDefaultErrorLogPathName () | ||||||||||
static MStatus | setErrorLogPathName ( const MString & logPathName ) | ||||||||||
static MString | errorLogPathName ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | startErrorLogging () | ||||||||||
static MStatus | startErrorLogging ( const MString & logPathName ) | ||||||||||
static bool | errorLoggingIsOn ( MStatus * ReturnStatus = NULL ) | ||||||||||
static MStatus | stopErrorLogging () | ||||||||||
static MStatus | closeErrorLog () | ||||||||||
static MStatus | doErrorLogEntry ( const MString & errorLogEntry ) | ||||||||||
static bool | isUndoing () | ||||||||||
static bool | isRedoing () | ||||||||||
static bool | getOptionVarValue (const MString & name, int& value) OBSOLETE & NO SCRIPT SUPPORT | ||||||||||
static bool | getOptionVarValue (const MString & name, double& value) OBSOLETE & NO SCRIPT SUPPORT | ||||||||||
static bool | 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® 2008 © 1997-2007 Autodesk, Inc. All rights reserved. | doc++ Copyright |