pymel.core.windows.viewManip

viewManip(*args, **kwargs)

Mel access to the view cube manipulator. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
bottomLeft / bl bool ../../../_images/create.gif ../../../_images/query.gif
  Positions the cube in the bottom left of the screen.
bottomRight / br bool ../../../_images/create.gif ../../../_images/query.gif
  Positions the cube in the bottom right of the screen.
compassAngle / ca float ../../../_images/create.gif ../../../_images/query.gif
  Angle (in degrees) to rotate the compass.
dragSnap / ds bool ../../../_images/create.gif ../../../_images/query.gif
  Enable snapping of orbit direction to view cube part directions during drag operation.
drawCompass / dc bool ../../../_images/create.gif ../../../_images/query.gif
  Show compass below the view cube.
fitToView / ftv bool ../../../_images/create.gif
  Fits the scene bounding box to the active view.
frontParameters / fp unicode ../../../_images/create.gif ../../../_images/query.gif
  Parameter string for the front position
goDefault / gd bool ../../../_images/create.gif ../../../_images/query.gif
  Go to the default position
goHome / gh bool ../../../_images/create.gif ../../../_images/query.gif
  Go to the home position
homeParameters / hp unicode ../../../_images/create.gif ../../../_images/query.gif
  Parameter string for the home position
levelCamera / lc bool ../../../_images/create.gif
  Flattens the camera view rotation relative to the ground plane.
minOpacity / mo float ../../../_images/create.gif ../../../_images/query.gif
  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).
namespace / ns unicode ../../../_images/create.gif ../../../_images/query.gif
  Namespace to use for the object
postCommand / p unicode ../../../_images/create.gif ../../../_images/query.gif
  Command to run after moving
preCommand / pr unicode ../../../_images/create.gif ../../../_images/query.gif
  Command to run before moving
preserveSceneUp / psu bool ../../../_images/create.gif ../../../_images/query.gif
  Specify whether the scene updirection should be preserved
resetFront / rf bool ../../../_images/create.gif ../../../_images/query.gif
  Reset the front position
resetHome / rh bool ../../../_images/create.gif ../../../_images/query.gif
  Reset the home position
restoreCenter / rc bool ../../../_images/create.gif
  Repositions the pivot point for orbiting/tumbling the scene to the center of the scene’s bounding box.
selectionLockParameters / slp unicode ../../../_images/create.gif ../../../_images/query.gif
  String containing the selection lock parameters
setFront / sf bool ../../../_images/create.gif
  Set the front view to the current one
setHome / sh bool ../../../_images/create.gif
  Set the home view to the current one
size / s unicode ../../../_images/create.gif ../../../_images/query.gif
  Set or query the size of the View Cube, which can be one of tiny, small, normal, largeor auto. When set to autothe View Cube will be automatically set to the size most appropriate for the view.
toggleSelectionLock / tsl bool ../../../_images/create.gif
  Toggle the selection lock
topLeft / tl bool ../../../_images/create.gif ../../../_images/query.gif
  Positions the cube in the top left of the screen.
topRight / tr bool ../../../_images/create.gif ../../../_images/query.gif
  Positions the cube in the top right of the screen.
visible / v bool ../../../_images/create.gif ../../../_images/query.gif
  Shows/hides the view manip.
zoomToFitScene / zf bool ../../../_images/create.gif ../../../_images/query.gif
  Zoom the camera during animated transitions to fit the scene object in the viewport. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.viewManip

Example:

import pymel.core as pm

#Position the view cube in the top left of the screen and set it to fully opaque
pm.viewManip(topLeft=True, minOpacity=1)