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

Synopsis

lookThru [-farClip float] [-nearClip float] [editorName] [object]

lookThru is NOT undoable, queryable, and NOT editable.

This command sets a particular camera to look through in a view. This command may also be used to view the negative z axis of lights or other DAG objects. The standard camera tools can then be used to place the object.

Note: if there are multiple objects under the transform selected, cameras and lights take precedence.

Return value

None

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

Related

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

Flags

farClip, nearClip
Long name (short name) Argument types Properties
-farClip(-fc) float create
Used when setting clip far plane for a new look thru camera. Will not affect the attributes of an existing camera. Clip values must come before shape or view.
-nearClip(-nc) float create
Used when setting near clip plane for a new look thru camera. Will not affect the attributes of an existing camera. Clip values must come before shape or view.

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

lookThru cameraShape1 topView;

lookThru -nc 100 -fc 200 perspView cameraShape1;

lookThru camera1;

lookThru -nc 0.001 -fc 5000.0 nurbsSphere1;

lookThru -q perspView;

lookThru -q;