Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 27-01-2014 , 01:35 PM
Registered User
Join Date: Dec 2013
Posts: 52

" Select curves longer then "

Hi Guys,

I was wondering if there is possibility to select curves longer then (certain size). I have used Toon outline and then generate curves out of it. Now I have 3000 curves but I don't need that much. There are lots of small tiny curves that I would love to delete. Is there a way I can select only the short curves and delete them. I mean a way other then doing it manually ,script or plug-in ?! user added image

# 2 27-01-2014 , 04:28 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
This should do it. Change 10 to whatever length you want. Select your curves, then run the script in the MEL script editor.

Code:
string $curves[] = `ls -sl`;
float $length = 10;

select -cl;

for ($curve in $curves)
{
    float $curveLength = `arclen $curve`;

    if ($curveLength > $length)
        select -add $curve;
}


Imagination is more important than knowledge.

Last edited by NextDesign; 27-01-2014 at 04:31 PM.
# 3 27-01-2014 , 05:35 PM
Registered User
Join Date: Dec 2013
Posts: 52
You are GOLD ! Thank you so much !

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads