Go to: Synopsis. Return value. Related. Flags. MEL examples.
viewSet [-animate boolean] [-back] [-bottom] [-fit] [-fitFactor float] [-front] [-home] [-keepRenderSettings boolean] [-leftSide] [-namespace string] [-nextView] [-persp] [-previousView] [-rightSide] [-side] [-top] [-viewNegativeX] [-viewNegativeY] [-viewNegativeZ] [-viewX] [-viewY] [-viewZ]
[camera]
viewSet is undoable, queryable, and NOT editable.
This command positions the camera to one of the pre-defined positions. If the fit flag is set in conjunction with persp, top, side, or front, the view is "fit" based on the list of selected objects (if there are any) or on all the objects if nothing is selected. Notice that the fit flag cannot be set in conjunction with view along axis commands like viewX. If a camera is not specified, the camera in the active view will be used. If no flag is specified, the camera is set to the home position.
None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-animate(-an)
|
boolean
|
![]() |
||
|
||||
-back(-b)
|
|
![]() |
||
|
||||
-bottom(-bo)
|
|
![]() |
||
|
||||
-fit(-fit)
|
|
![]() ![]() |
||
|
||||
-fitFactor(-ff)
|
float
|
![]() |
||
|
||||
-front(-f)
|
|
![]() |
||
|
||||
-home(-h)
|
|
![]() |
||
|
||||
-keepRenderSettings(-krs)
|
boolean
|
![]() ![]() |
||
|
||||
-leftSide(-ls)
|
|
![]() |
||
|
||||
-namespace(-ns)
|
string
|
![]() |
||
|
||||
-nextView(-nv)
|
|
![]() ![]() |
||
|
||||
-persp(-p)
|
|
![]() |
||
|
||||
-previousView(-pv)
|
|
![]() ![]() |
||
|
||||
-rightSide(-rs)
|
|
![]() |
||
|
||||
-side(-s)
|
|
![]() |
||
|
||||
-top(-t)
|
|
![]() |
||
|
||||
-viewNegativeX(-vnx)
|
|
![]() |
||
|
||||
-viewNegativeY(-vny)
|
|
![]() |
||
|
||||
-viewNegativeZ(-vnz)
|
|
![]() |
||
|
||||
-viewX(-vx)
|
|
![]() |
||
|
||||
-viewY(-vy)
|
|
![]() |
||
|
||||
-viewZ(-vz)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Create a new camera string $cam[] = `camera`; string $camShape = $cam[1]; // Set cameraShape1 to the persp position viewSet -p $camShape; // Set the camera in the active view to the top position viewSet -t;