PDA

View Full Version : planar 200 curves


lienekevanhoek
02-22-2011, 09:42 AM
Hi,

I have more than 200 curves of which i want to make (separate) planars. When you select all the curves and then say planar he only applies the planar on the latest object. I'm not that familiar with mel/phyton but know somebody a solution? I tried to write some script but doesn't work out....

Bests,
Lieneke

mlefevre
02-22-2011, 10:41 AM
hi,

would this work? if so, you might want to add a check that each curve is closed aswell.

string $sel[] = `ls -sl`;
for($curve in $sel)
{
string $shape[] = `listRelatives -shapes $curve`;
if(size($shape))
{
if(size(`ls -type "nurbsCurve" $shape[0]`))
planarSrf -ch 1 -d 3 -ko 0 -tol 0.01 -rn 0 -po 0 $curve;
}
}

good luck!

lienekevanhoek
02-22-2011, 11:00 AM
Super! Work! Thanks A lot

CGTalk Moderation
02-22-2011, 11: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.