PDA

View Full Version : script question


alx
05-29-2002, 10:36 AM
hey... i have a bit of a problem...
k i have a scene w p FX. there is a main light and i need to connect the lights data/light direction to the Pf Brushes light direction . thing is that its not one brush. its ALOT of brushes... so i guess there should be a global variable or something to connect these 2...with out having to do it one by one.. any answers i would really appreciate :thumbsup:..
thanks,..

sincerely

alx
:wavey:

bigfatMELon
05-30-2002, 06:19 AM
Why not do it in a loop? With the brushes selected:

string $sel[] = `ls -sl`; //get the selection
string $x;
string $brushShapeList[];

for ($x in $sel){
select -r $x; //select the first brush
pickwalk -d down; //pickwalk down to it's shape node
$brushShapeList = `ls -sl`; //get the shape from the selection

connectAttr lightShapeNode.attr ($brushShapeList[0] + ".attr");
}

Or something to that effect.

-jl

alx
05-30-2002, 01:42 PM
me lon thansk for the tip... preety much works.. thanks...

CGTalk Moderation
01-13-2006, 07:00 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.