View Single Post
# 16 27-06-2009 , 02:52 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
Here you go. Select the object, and then run the script. Preferably map it to a shelf icon, or to a hot key.

Code:
string $selObj[] = `ls -sl`;

if ($selObj[0] == "")
	error "No object has been selected";
else
{
	select $selObj[0];
	int $numEdges[] = `polyEvaluate -e`;
	
	select -r ($selObj[0] + ".e[0:" + ($numEdges[0] -1) + "]");
	select -cl;
	select $selObj[0];
	
	print "Edges Cleared!\n";
}


Imagination is more important than knowledge.

Last edited by NextDesign; 27-06-2009 at 03:03 AM.