This command can be used to create, edit, or query a scale manip context.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
activeHandle (ah) | int | ||
Sets the default active handle for the manip. That is, the handle which should be initially active when the tool is activated. Values can be: 0 - X axis handle is active1 - Y axis handle is active2 - Z axis handle is active3 - Center handle (all axes) is active (default) |
|||
alignAlong (aa) | float, float, float | ||
|
|||
editPivotMode (epm) | bool | ||
|
|||
editPivotPosition (epp) | bool | ||
|
|||
exists (ex) | bool | ||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
mode (m) | int | ||
Translate mode: 0 - Object Space1 - Local Space2 - World Space (default)3 - Move Along Vertex Normal4 - Move Along Rotation Axis5 - Move Along Live Object Axis6 - Custom Axis Orientation |
|||
orientAxes (oa) | float, float, float | ||
|
|||
orientTowards (ot) | float, float, float | ||
|
|||
position (p) | bool | ||
|
|||
postDragCommand (pod) | script, <type ‘unicode’> | ||
|
|||
preDragCommand (prd) | script, <type ‘unicode’> | ||
|
|||
preserveChildPosition (pcp) | bool | ||
When false, the children objects move when their parent is rotated. When true, the worldspace position of the children will be maintained as the parent is moved. Default is false.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
preserveUV (puv) | bool | ||
reflection (rfl) | bool | ||
|
|||
reflectionAbout (rab) | int | ||
|
|||
reflectionAxis (rfa) | int | ||
|
|||
reflectionTolerance (rft) | float | ||
|
|||
snap (s) | bool | ||
snapRelative (sr) | bool | ||
snapValue (sv) | float | ||
useManipPivot (ump) | bool | ||
useObjectPivot (uop) | bool | ||
Derived from mel command maya.cmds.manipScaleContext
Example:
import pymel.core as pm
import maya.cmds as cmds
# To create a new scale context:
pm.manipScaleContext()
# Result: u'manipScaleContext1' #
# To query the active handle of an existing scale context:
pm.manipScaleContext( 'manipScaleContext1', q=True, ah=True )
# Result: 3 #
# To edit an exiting scale context so that it comes up with the X axis
# handle active by default:
pm.manipScaleContext( 'manipScaleContext1', e=True, ah=0 )
# Result: u'manipScaleContext1' #