Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Related

camera, cameraView, dolly, listCameras, lookThru, orbit, roll, track, tumble, viewCamera, viewClipPlane, viewFit, viewHeadOn, viewPlace, viewSet

Flags

position
Long name (short name) argument types Properties
-position(-pos) float float float create
Position in world space to make the camera look at.

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

MEL examples

// Create a new camera
string $cam[] = `camera`;
string $camera = $cam[0];

viewLookAt -pos 0.0 1.0 0.0 $camera;