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

Synopsis

viewManip [-bottomLeft] [-bottomRight] [-compassAngle float] [-dragSnap boolean] [-drawCompass boolean] [-fitToView] [-levelCamera] [-minOpacity float] [-restoreCenter] [-size string] [-topLeft] [-topRight] [-visible boolean] [-zoomToFitScene boolean]

viewManip is undoable, queryable, and NOT editable.

Mel access to the view cube manipulator.

Return value

None

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

Flags

bottomLeft, bottomRight, compassAngle, dragSnap, drawCompass, fitToView, levelCamera, minOpacity, restoreCenter, size, topLeft, topRight, visible, zoomToFitScene
Long name (short name) Argument types Properties
-bottomLeft(-bl) createquery
Positions the cube in the bottom left of the screen.
-bottomRight(-br) createquery
Positions the cube in the bottom right of the screen.
-compassAngle(-ca) float createquery
Angle (in degrees) to rotate the compass.
-dragSnap(-ds) boolean createquery
Enable snapping of orbit direction to view cube part directions during drag operation.
-drawCompass(-dc) boolean createquery
Show compass below the view cube.
-fitToView(-ftv) create
Fits the scene bounding box to the active view.
-levelCamera(-lc) create
Flattens the camera view rotation relative to the ground plane.
-minOpacity(-mo) float createquery
Opacity level (in range [0,1]) on view cube when the cursor is away from it (it is fully opaque when the cursor is in the view cube area).
-restoreCenter(-rc) create
Repositions the pivot point for orbiting/tumbling the scene to the center of the scene's bounding box.
-size(-s) string createquery
Set or query the size of the View Cube, which can be one of "tiny", "small", "normal", "large" or "auto". When set to "auto" the View Cube will be automatically set to the size most appropriate for the view.
-topLeft(-tl) createquery
Positions the cube in the top left of the screen.
-topRight(-tr) createquery
Positions the cube in the top right of the screen.
-visible(-v) boolean createquery
Shows/hides the view manip.
-zoomToFitScene(-zf) boolean createquery
Zoom the camera during animated transitions to fit the scene object in the viewport.

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

//Position the view cube in the top left of the screen and set it to fully opaque
viewManip -topLeft -minOpacity 1;