pymel.core.rendering.viewClipPlane

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

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 #