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
Positions the cube in the bottom left of the screen. bottomRight / br bool
Positions the cube in the bottom right of the screen. compassAngle / ca float
Angle (in degrees) to rotate the compass. dragSnap / ds bool
Enable snapping of orbit direction to view cube part directions during drag operation. drawCompass / dc bool
Show compass below the view cube. fitToView / ftv bool
Fits the scene bounding box to the active view. frontParameters / fp unicode
Parameter string for the front position goDefault / gd bool
Go to the default position goHome / gh bool
Go to the home position homeParameters / hp unicode
Parameter string for the home position levelCamera / lc bool
Flattens the camera view rotation relative to the ground plane. minOpacity / mo float
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
Namespace to use for the object postCommand / p unicode
Command to run after moving preCommand / pr unicode
Command to run before moving preserveSceneUp / psu bool
Specify whether the scene updirection should be preserved resetFront / rf bool
Reset the front position resetHome / rh bool
Reset the home position restoreCenter / rc bool
Repositions the pivot point for orbiting/tumbling the scene to the center of the scene’s bounding box. selectionLockParameters / slp unicode
String containing the selection lock parameters setFront / sf bool
Set the front view to the current one setHome / sh bool
Set the home view to the current one size / s unicode
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
Toggle the selection lock topLeft / tl bool
Positions the cube in the top left of the screen. topRight / tr bool
Positions the cube in the top right of the screen. visible / v bool
Shows/hides the view manip. zoomToFitScene / zf bool
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)