pymel.core.rendering.lookThru¶
- 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 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 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 have multiple arguments, passed either as a tuple or a list. 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 )