PDA

View Full Version : viewport clipping?


leigh
05-21-2007, 04:30 PM
Quick stupid question. I can't find the manuals here at work so I figured I'd post this one... how do I change the viewport clipping settings for Bodypaint?

ernia
05-21-2007, 05:07 PM
Hi Leigh,

Don't know if you can set it for viewport, but you can for a camera. Create a camera and adjust the "near clipping" setting in its object's settings. Be sure to use that camera when in BP.

hth,
ernia

Per-Anders
05-21-2007, 05:17 PM
Also if you're painting in an orthographic view you can move the camera back (the dolly turns into zoom in ortho views so you have to manually move the camera).

leigh
05-21-2007, 07:07 PM
Thanks guys. I was hoping I could adjust the setting for the perspective viewport, but I guess making a camera isn't too much of a pain.

Thanks again.

Per-Anders
05-21-2007, 07:18 PM
You should be able to do it via a script:

Make a new script using the Windows->Script Manager and copy paste this in:


var cam = doc->GetRenderBaseDraw()#BASEDRAW_DATA_CAMERA;
cam#CAMERAOBJECT_NEAR_CLIPPING_ENABLE = TRUE;
cam#CAMERAOBJECT_NEAR_CLIPPING = -10000.0;


this will enable the near clipping option on the camera if it's available, and set he near clipping to -10000 units. You can change this of course, and just have it disable near clipping if you want by setting it to "FALSE" rather than "TRUE".

you can then just drag & drop the icon out to any palette so you can set it up however, or if y ou can save the scene as default.c4d or new.c4d so that it will be the default startup setup.

leigh
05-21-2007, 10:46 PM
Oh cool, Per. I'll test that out tomorrow at work.

Ta :thumbsup:

CGTalk Moderation
05-21-2007, 10:46 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.