pymel.core.rendering.viewClipPlane

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

The viewClipPlane command can be used to query or set a camera’s clip planes. If a camera is not specified, the camera in the active view will be used. The near and far clip plane flags may be used in conjunction with the auto clip plane flag. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
autoClipPlane (acp) bool ../../../_images/create.gif ../../../_images/query.gif
 
Compute the clip planes such that all object’s in the camera’s viewing frustum will be visible.
farClipPlane (fcp) float ../../../_images/create.gif ../../../_images/query.gif
 
Set or query the far clip plane. Flag can have multiple arguments, passed either as a tuple or a list.
nearClipPlane (ncp) float ../../../_images/create.gif ../../../_images/query.gif
 
Set or query the near clip plane.
surfacesOnly (so) bool ../../../_images/create.gif
 
This flag is to be used in conjunction with the auto clip plane flag. Only the bounding boxes of surfaces will be used to compute the camera’s clipping planes.

Derived from mel command maya.cmds.viewClipPlane

Example:

import pymel.core as pm

pm.viewClipPlane( 'perspShape', acp=True )

pm.viewClipPlane( acp=True )

pm.viewClipPlane( acp=True, ncp=3.0 )

pm.viewClipPlane( ncp='3.0cm' )

pm.viewClipPlane( 'perspShape', q=True, ncp=True )
# Result: 3.0 #

Previous topic

pymel.core.rendering.viewCamera

Next topic

pymel.core.rendering.viewFit

Core

Core Modules

Other Modules

This Page