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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
autoClipPlane (acp) | bool | ||
|
|||
farClipPlane (fcp) | float | ||
|
|||
nearClipPlane (ncp) | float | ||
|
|||
surfacesOnly (so) | bool | ||
|
Derived from mel command maya.cmds.viewClipPlane
Example:
import pymel.core as pm
import maya.cmds as cmds
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 #