pymel.core.context.tumbleCtx¶
- tumbleCtx(*args, **kwargs)¶
This command can be used to create, edit, or query a tumble context.
Flags:
Long Name / Short Name Argument Types Properties alternateContext / ac bool Set the ALT+MMB and ALT+SHIFT+MMB to refer to this context. autoOrthoConstrain / aoc bool Automatically constrain horizontal and vertical rotations when the camera is orthographic. The shift key can be used to unconstrain the rotation. autoSetPivot / asp bool Automatically set the camera pivot to the selection or tool effect region exists / ex bool Returns true or false depending upon whether the specified object exists. Other flags are ignored. history / ch bool If this is a tool command, turn the construction history on for the tool in question. image1 / i1 unicode First of three possible icons representing the tool associated with the context. image2 / i2 unicode Second of three possible icons representing the tool associated with the context. image3 / i3 unicode Third of three possible icons representing the tool associated with the context. 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 If this is a tool command, name the tool appropriately. objectTumble / ot bool Make the camera tumble around the selected object, if true. orthoLock / ol bool Orthographic cameras cannot be tumbled while orthoLock is on. 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 Name of the specific tool to which this command refers. tumbleScale / ts float Set the rotation speed. A tumble scale of 1.0 will result in in 40 degrees of rotation per 100 pixels of cursor drag. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.tumbleCtx
Example:
import pymel.core as pm pm.tumbleCtx( 'tumbleContext', ts=1.0, lt=False, ac=False, ol=True )