Go to: Synopsis. Return value. Python examples.
srtContext()
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
srtContext is undoable, queryable, and editable.
This command can be used to create a combined transform (translate/scale/rotate) context.string | - name of the newly created context |
In query mode, return type is based on queried flag.
import maya.cmds as cmds # To see if an srtContext named "Transform" exists: cmds.srtContext( 'Transform', q=True, exists=True )