pymel.core.rendering.lookThru

static rendering.lookThru(*args, **kwargs)

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. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
farClip (fc) float ../../../_images/create.gif
 

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. Flag can have multiple arguments, passed either as a tuple or a list.

nearClip (nc) float ../../../_images/create.gif
 
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.

Derived from mel command maya.cmds.lookThru

Example:

import pymel.core as pm

pm.lookThru( 'cameraShape1', 'topView' )

pm.lookThru( 'perspView', 'cameraShape1', nc=100, fc=200 )

pm.lookThru( 'camera1' )

pm.lookThru( 'nurbsSphere1', nc=0.001, fc=5000.0 )

pm.lookThru( 'perspView', q=True )

pm.lookThru( q=True )

Previous topic

pymel.core.rendering.listCameras

Next topic

pymel.core.rendering.lsThroughFilter

Core

Core Modules

Other Modules

This Page