PDA

View Full Version : How to hide the camera aim line?


shenmue
12-27-2009, 10:32 PM
Hey,
I was just trying to hide the line between the camera and the aim.Even hidding every thing in the scene,that anoying line is still visible.Where is the parameter to hide it?
Thx
R,

djx
12-30-2009, 02:06 AM
In the camera_group attributes, under "Constraint Properties" you can uncheck "Display Connector".

-- David

norbertnacu
12-30-2009, 07:41 AM
Hi There,
Here's a basic script to enable/disable your displayConnector attribute. Select your camera node(s), and run the script.

**If you don't select a camera node in your scene the script will check for all the camera nodes in scene.**


global proc nnHideAimLine( int $mode )
{
string $cameraNodes[] = `ls -sl -dag -l -typ "camera"`;

if( !size( $cameraNodes ) )
{
$cameraNodes = `ls -dag -l -typ "camera"`;
}

for( $cameraNode in $cameraNodes )
{
string $parentNode = firstParentOf( $cameraNode );
$parentNode = firstParentOf( $parentNode );

if( size( $parentNode ) )
{
if( "lookAt" == `nodeType $parentNode` )
{
setAttr( $parentNode + ".displayConnector" ) $mode;
}
}
}
}


// Hide Selected/All
nnHideAimLine( false );

// Show Selected/All
nnHideAimLine( true );

Hope this helps,
Norbert Nacu

CGTalk Moderation
12-30-2009, 07:41 AM
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.