pymel.core.context.view2dToolCtx — PyMEL 1.0.7 documentation

pymel.core.context.view2dToolCtx

view2dToolCtx(*args, **kwargs)

This class creates a context for the View Tools track, dolly, and box zoomin the Hypergraph.

Flags:

Long Name / Short Name Argument Types Properties
alternateContext / ac bool  
   
boxzoom / bz bool ../../../_images/create.gif ../../../_images/query.gif
 
Perform Box Zoom Flag can have multiple arguments, passed either as a tuple or a list.
dolly / do bool ../../../_images/create.gif ../../../_images/query.gif
 
Dollies the view
exists / ex bool  
   
history / ch bool  
   
image1 / i1 unicode  
   
image2 / i2 unicode  
   
image3 / i3 unicode  
   
name / n unicode  
   
toolName / tn unicode  
   
track / tr bool ../../../_images/create.gif ../../../_images/query.gif
 
Tracks the view

Derived from mel command maya.cmds.view2dToolCtx

Example:

import pymel.core as pm

# Create a new view2dTool context, set it to do dolly in the Hypergraph window, then switch to this tool
pm.view2dToolCtx('view2dToolCtx1', dolly=True)
# Result: u'view2dToolCtx1' #
pm.setToolTo('view2dToolCtx1')

Previous topic

pymel.core.context.userCtx

Next topic

pymel.core.context.walkCtx

Core Modules

Type Modules

Other Modules

This Page