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 ../../../_images/edit.gif
 
Set the ALT+LMB and ALT+SFT+LMB 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.
exists (ex) bool  
   
history (ch) bool  
   
image1 (i1) unicode  
   
image2 (i2) unicode  
   
image3 (i3) unicode  
   
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  
   
objectTumble (ot) bool  
   
orthoLock (ol) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_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  
   
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.

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 )

Previous topic

pymel.core.context.trimCtx

Next topic

pymel.core.context.twoPointArcCtx

Core

Core Modules

Other Modules

This Page