Base class for custom tool commands.
Method resolution order:
- MPxToolCommand
- OpenMaya.MPxCommand
- __builtin__.object
Constructor & Destructor Documentation
OpenMayaUI.MPxToolCommand.__init__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMayaUI.MPxToolCommand.cancel
(
)
cancel() -> None
This method cancels the command.
The user should override this method when the original program state
needs to be restored.
OpenMayaUI.MPxToolCommand.doFinalize
(
)
doFinalize() -> None
Call this method with an MArgList representing your command.
This method will register the command with the undo manager
for journalling.
* command (MArgList) Reference representing an equivalent
OpenMayaUI.MPxToolCommand.doIt
(
)
Called by Maya to execute the command.
OpenMayaUI.MPxToolCommand.finalize
(
)
finalize() -> None
This method is used to create a string representing the command
and its arguments.
Users should override this method and contruct an MArgList and
then pass it to <b>doFinalize</b> for journalling.