LC #42 Pipers Alley

View Full Version : bounding box of farclipping plane

06-11-2012, 08:04 AM
How is it possible to find out the bounding box of a camera

07-03-2012, 03:40 PM
In Maya i think there is no such tools, but looks quite easy to do.

1. Get the Far Clip Plane Information
2. Create a NurbsSphere and constraint it to the camera
3. Connect the value of your camera far clip plane to the radius of the sphere

I tried something for you, this one will just smake a sphere that shows your change the vlaue, go in the camera as usual...

#Get the actual selection
myCam =
#Take the shape of it
myCamShape =, dag=True, shapes=True)
#Create sphere
camBbox = cmds.sphere()
#Contraint position
cmds.pointConstraint(myCam, camBbox, mo=False)
#Connect Far Clip Plane to sphere Scale
cmds.connectAttr(myCamShape[0] + '.farClipPlane', camBbox[0] + '.scaleX')
cmds.connectAttr(myCamShape[0] + '.farClipPlane', camBbox[0] + '.scaleY')
cmds.connectAttr(myCamShape[0] + '.farClipPlane', camBbox[0] + '.scaleZ')

This one will make similar sphere but you can scale it to change your farClipPlane, be careful to scale all axis, basically it just reverses the connection direction... :

myCam =
myCamShape =, dag=True, shapes=True)
camBbox = cmds.sphere()
cmds.pointConstraint(myCam, camBbox, mo=False)
cmds.connectAttr(camBbox[0] + '.scaleX', myCamShape[0] + '.farClipPlane' )

CGTalk Moderation
07-03-2012, 03:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.