Go to: Synopsis. Return value. Python examples.
setToolTo(
[toolName]
)
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
setToolTo is undoable, queryable, and editable.
This command switches control to the named context.import maya.cmds as cmds cmds.setToolTo( 'moveSuperContext' )