PDA

View Full Version : seperate along edge?


GatorNic
10-21-2005, 04:54 AM
Hey anbody know of a script out there that will seperate a poly object into two seperate objects along a selected edge/edge loop?

Would be nice to do instead of having to select all the faces, extract and seperate. Did some searches but didn't come up with much.

el diablo
10-21-2005, 05:18 AM
global proc cut()

{

string $edges[] = `ls -sl -fl`;

string $poly[] = `listRelatives -p $edges[0]`;

polySplitVertex $edges;

string $pieces[] = `polySeparate -ch 0 $poly`;

for($a in $pieces)

{

select -r $a;

string $b[] = `ls -sl`;

print $b;

select -r ($b[0] + ".e
");

polySewEdge -t 0.1 -tx 1 -ws 1 -ch 1 ;

polySoftEdge -a 180 -ch 1;

}

select -cl;

}

cut;

GatorNic
10-21-2005, 06:43 AM
Aaaahh nice! Works perfectly, thanks! :thumbsup:

didn't realize polySplitVertex worked on edges and faces. learn somethin everyday!

CGTalk Moderation
10-21-2005, 06:43 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.