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 ../../../_images/create.gif ../../../_images/query.gif
  Set the ALT+MMB and ALT+SHIFT+MMB to refer to this context.
autoOrthoConstrain / aoc bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Automatically constrain horizontal and vertical rotations when the camera is orthographic. The shift key can be used to unconstrain the rotation.
autoSetPivot / asp bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Automatically set the camera pivot to the selection or tool effect region
exists / ex bool ../../../_images/create.gif
  Returns true or false depending upon whether the specified object exists. Other flags are ignored.
history / ch bool ../../../_images/create.gif
  If this is a tool command, turn the construction history on for the tool in question.
image1 / i1 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  First of three possible icons representing the tool associated with the context.
image2 / i2 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Second of three possible icons representing the tool associated with the context.
image3 / i3 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Third of three possible icons representing the tool associated with the context.
localTumble / lt int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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 ../../../_images/create.gif
  If this is a tool command, name the tool appropriately.
objectTumble / ot bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Make the camera tumble around the selected object, if true.
orthoLock / ol bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Orthographic cameras cannot be tumbled while orthoLock is on.
orthoStep / os float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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 ../../../_images/create.gif ../../../_images/query.gif
  Name of the specific tool to which this command refers.
tumbleScale / ts float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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 )