Go to: Synopsis. Return value. Related. Flags. Python examples.
viewClipPlane(
[camera]
, [autoClipPlane=boolean], [farClipPlane=linear], [nearClipPlane=linear], [surfacesOnly=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
viewClipPlane is undoable, queryable, and NOT editable.
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.
None
In query mode, return type is based on queried flag.
camera, cameraView, dolly, listCameras, lookThru, orbit, roll, track, tumble, viewCamera, viewFit, viewHeadOn, viewLookAt, viewPlace, viewSet
autoClipPlane, farClipPlane, nearClipPlane, surfacesOnly
Long name (short name) |
Argument types |
Properties |
autoClipPlane(acp)
|
boolean
|
|
|
Compute the clip planes such that all object's in the camera's
viewing frustum will be visible.
|
|
surfacesOnly(so)
|
boolean
|
|
|
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.
|
|
nearClipPlane(ncp)
|
linear
|
|
|
Set or query the near clip plane.
|
|
farClipPlane(fcp)
|
linear
|
|
|
Set or query the far clip plane.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
cmds.viewClipPlane( 'perspShape', acp=True )
cmds.viewClipPlane( acp=True )
cmds.viewClipPlane( acp=True, ncp=3.0 )
cmds.viewClipPlane( ncp='3.0cm' )
cmds.viewClipPlane( 'perspShape', q=True, ncp=True )