This command can be used to create, edit, or query a rotate manip context.
Flags:
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 - View rotation handle (outer ring) is active (default) |
|||
alignAlong / aa | float, float, float | ![]() ![]() |
|
|
|||
centerTrackball / ctb | bool | ||
currentActiveHandle / cah | int | ![]() ![]() |
|
Sets the active handle for the manip. Values can be: 0 - X axis handle is active1 - Y axis handle is active2 - Z axis handle is active3 - View rotation handle (outer ring) is active4 - Arc Ball is active |
|||
editPivotMode / epm | bool | ![]() |
|
|
|||
editPivotPosition / epp | bool | ![]() |
|
|
|||
exists / ex | bool | ||
image1 / i1 | unicode | ||
image2 / i2 | unicode | ||
image3 / i3 | unicode | ||
lastMode / lm | int | ![]() |
|
|
|||
manipVisible / vis | bool | ![]() |
|
|
|||
mode / m | int | ![]() ![]() |
|
|
|||
modifyTranslation / mt | bool | ![]() ![]() |
|
When false, and an object is rotated about a point other than its rotate pivot, its rotateTranslate attribute is modified to put the object at the correct position. When true, its translate attribute is used instead. Default is false. |
|||
orientAxes / oa | float, float, float | ![]() ![]() |
|
|
|||
orientTowards / ot | float, float, float | ![]() ![]() |
|
|
|||
pinPivot / pin | bool | ![]() ![]() |
|
|
|||
position / p | bool | ![]() |
|
|
|||
postCommand / psc | script | ![]() ![]() |
|
|
|||
postDragCommand / pod | script, <type ‘unicode’> | ![]() ![]() |
|
|
|||
preCommand / prc | script | ![]() ![]() |
|
|
|||
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. |
|||
preserveUV / puv | bool | ![]() ![]() |
|
When false, the uvs are not changes to match the vertex edit. When true, the uvs are edited to project to new values to stop texture swimming as vertices are moved. |
|||
reflection / rfl | bool | ||
|
|||
reflectionAbout / rab | int | ||
|
|||
reflectionAxis / rfa | int | ||
|
|||
reflectionTolerance / rft | float | ||
|
|||
rotate / ro | float, float, float | ![]() ![]() |
|
Returns the rotation of the manipulator for its current orientation/mode. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
snap / s | bool | ||
snapPivotOri / spo | bool | ![]() ![]() |
|
|
|||
snapPivotPos / spp | bool | ![]() ![]() |
|
|
|||
snapRelative / sr | bool | ||
snapValue / sv | float | ||
tweakMode / twk | bool | ![]() ![]() |
|
|
|||
useCenterPivot / ucp | bool | ![]() ![]() |
|
|
|||
useManipPivot / ump | bool | ![]() ![]() |
|
|
|||
useObjectPivot / uop | bool | ![]() ![]() |
|
|
|||
xformConstraint / xc | unicode | ![]() ![]() |
|
|
Derived from mel command maya.cmds.manipRotateContext
Example:
import pymel.core as pm
# To create a new rotate context:
pm.manipRotateContext()
# Result: u'manipRotateContext2' #
# To query the mode of an existing context:
pm.manipRotateContext( 'manipRotateContext1', q=True, mode=True )
# Result: 0 #
# To edit an existing context to come up with the X axis
# handle active by default:
pm.manipRotateContext( 'manipRotateContext1', e=True, ah=0 )
# Result: u'manipRotateContext1' #