This command can be used to create, edit, or query a tumble context.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
alternateContext (ac) | bool | ||
|
|||
autoOrthoConstrain (aoc) | bool | ||
|
|||
exists (ex) | bool | ||
history (ch) | bool | ||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
localTumble (lt) | int | ||
Describes what point the camera will tumble around: 0 for the camera’s tumble pivot1 for the camera’s center of interest2 for the camera’s local axis, offset by its tumble pivot |
|||
name (n) | unicode | ||
objectTumble (ot) | bool | ||
orthoLock (ol) | bool | ||
Orthographic cameras cannot be tumbled while orthoLock is on.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
orthoStep (os) | float | ||
Specify the angular step in degrees for orthographic rotation. If camera is orthographic and autoOrthoConstrain is toggled on the rotation will be stepped by this amount. |
|||
toolName (tn) | unicode | ||
tumbleScale (ts) | float | ||
|
Derived from mel command maya.cmds.tumbleCtx
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.tumbleCtx( 'tumbleContext', ts=1.0, lt=False, ac=False, ol=True )