View Single Post
# 4 26-10-2006 , 03:59 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
I wrote this script a while back to fix this when it occurs;. Rather than manually go and extend the far clipping plane, if you make a shelf button out of this code it will double the far clippling plane of whatever camera/view is active.

string $currentCamera;
string $panel = `getPanel -wf`;

if ( "modelPanel" == `getPanel -to $panel` )
{
$currentCamera = `modelEditor -q -camera $panel`;
}

string $farClip = ($currentCamera + ".farClipPlane");
float $farClipValue = `getAttr $farClip`;
setAttr $farClip ($farClipValue * 2);