Go to: Synopsis. Return value. Python examples.



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.

Return value

string- name of the newly created context

In query mode, return type is based on queried flag.

Python examples

import maya.cmds as cmds

# To see if an srtContext named "Transform" exists:
cmds.srtContext( 'Transform', q=True, exists=True )