This class creates a context for the View Tools track, dolly, and box zoomin the Hypergraph.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
alternateContext (ac) | bool | ||
boxzoom (bz) | bool | ||
|
|||
dolly (do) | bool | ||
|
|||
exists (ex) | bool | ||
history (ch) | bool | ||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
name (n) | unicode | ||
toolName (tn) | unicode | ||
track (tr) | bool | ||
|
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')