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.
# 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.
# 17 28-06-2009 , 07:55 AM
Registered User
Join Date: May 2008
Posts: 245
thanks next design, I am going to try this, thank so much for making the script, you are really helpful

# 18 28-06-2009 , 05:24 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
Glad to help out!


Imagination is more important than knowledge.
# 19 10-10-2009 , 10:56 AM
Registered User
Join Date: May 2008
Posts: 245
thanks next desing
since this day that you post this scrip I am using it, it s amazing and really good and works very well, I save alots of time and I am relax now(no more frustrated) , thanks and please wrap it as mel script and send it to others if someone need it, I am sure everyone needs this mel script if you are working as modeling,

thanks and great work

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