Go to: Synopsis. Return value. Related. Flags. MEL examples.
viewLookAt [-position linear linear linear]
[camera]
viewLookAt is undoable, NOT queryable, and NOT editable.
The viewLookAt command positions the specified camera so it is looking at the centroid of all selected objects. If no objects are specified the camera will look at the ground plane.None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-position(-pos)
|
linear linear linear
|
|||
|
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. |
// Create a new camera string $cam[] = `camera`; string $camera = $cam[0]; viewLookAt -pos 0.0 1.0 0.0 $camera;