This command can be used to create camera 2D pan/zoom context.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| alternateContext (ac) | bool | ||
| buttonDown (btd) | bool | ||
| buttonUp (btu) | bool | ||
| exists (ex) | bool | ||
| history (ch) | bool | ||
| image1 (i1) | unicode | ||
| image2 (i2) | unicode | ||
| image3 (i3) | unicode | ||
| name (n) | unicode | ||
| panMode (pm) | bool |
|
|
|
|||
| toolName (tn) | unicode | ||
| zoomMode (zm) | bool |
|
|
|
|||
| zoomScale (zs) | float |
|
|
|
|||
Derived from mel command maya.cmds.panZoomCtx
Example:
import pymel.core as pm
pm.panZoomCtx( 'panZoomContext', zs=1.0 )
# Result: u'panZoomContext' #