Go to: Synopsis. Return value. Flags. Python examples.
scmh(
float [float...]
, [absolute=boolean], [ignore=uint], [quiet=boolean], [relative=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
scmh is undoable, NOT queryable, and NOT editable.
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).
None
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
absolute(a)
|
boolean
|
|
||
|
||||
ignore(i)
|
uint
|
|
||
|
||||
quiet(q)
|
boolean
|
|
||
|
||||
relative(r)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds
# Create a new move manip context, set the active handle to X axis handle, then swith to it
cmds.manipMoveContext('manipMoveContext1', ah=0)
cmds.setToolTo('manipMoveContext1')
# Set the active handle value to 10.(Translate the pSphere1 by (10, 0, 0))
cmds.scmh(10, r=True)