Go to: Synopsis. Flags. Return value. Related. MEL examples.
viewLookAt [-position float float float]
[camera]
viewLookAt is undoable, queryable, and 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.Long name (short name) | [argument types] | Properties | ||
---|---|---|---|---|
-position(-pos)
|
float float float
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Create a new camera string $cam[] = `camera`; string $camera = $cam[0]; viewLookAt -pos 0.0 1.0 0.0 $camera;