pymel.core.windows.scmh¶
- scmh(*args, **kwargs)¶
Set the current manipulator handle value(s). In UI units (where applicable), though the syntax is set to handle the unit type of the current manipulator handle (if available).
Flags:
Long Name / Short Name Argument Types Properties absolute / a bool The values are absolute ignore / i int This is a multiuse flag which specifies that the index-th (1-based) entry is to be ignored quiet / q bool This flag suppresses all error messages relative / r bool The values are relative Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.scmh
Example:
import pymel.core as pm # Create a new move manip context, set the active handle to X axis handle, then swith to it pm.manipMoveContext('manipMoveContext1', ah=0) pm.setToolTo('manipMoveContext1') # Set the active handle value to 10.(Translate the pSphere1 by (10, 0, 0)) pm.scmh(10, r=True)