Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

panZoomCtx [-panMode] [-zoomMode] [-zoomScale float]

panZoomCtx is undoable, queryable, and editable.

This command can be used to create camera 2D pan/zoom context.

Return value

string The name of the context

In query mode, return type is based on queried flag.

Flags

panMode, zoomMode, zoomScale
Long name (short name) Argument types Properties
-zoomScale(-zs) float createqueryedit
Scale the zoom. The smaller the scale the slower the drag.
-panMode(-pm) create
Specify to create a camera 2D pan context, which is the default.
-zoomMode(-zm) create
Specify to create a camera 2D zoom context.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

panZoomCtx -zs 1.0 panZoomContext;