PDA

View Full Version : need a script to even edges


Raptor235
05-23-2002, 03:33 PM
Could someone please write a small script to even all selected edges so that when I'm modeling I could select 5 edges and hit the script and it would make a perfect pentagon or 4 would make square ect ect I think Mirai has something like that I seen it used but it shouldn't be too hard to make so if you could please and thanks.:wip:

bentllama
05-23-2002, 04:16 PM
Why don't you do it yourself? We all need to learn MEL at some point.

Raptor235
05-23-2002, 04:20 PM
I know a little bit of mel but not enough, I wish I would know it well to do all these little ideas I get.

Raptor235
05-23-2002, 04:48 PM
I have documented a bit of how it will work but I need a bit of help with the syntax well all the syntax I'll try to do it myself but some help would be great.

Declare Variables

Variables

Total Edges = Get
Total Lengh = Get
Avg Lenght = ?

Count Edges Selected
Put Into Variable

Add Lenght of Selected Edges
Put Into Variable

Simple Formula
Total Lenght / Total Edges = Avg Lenght

Make all selected edges = avg lenght

Lyr
05-23-2002, 06:12 PM
I'll write it for you if you pay me.

Raptor235
05-23-2002, 06:20 PM
Well if I needed it for a paying project or if I wasn't a student hehe then maybe but for now I rather learn to do it . Thanks anyway

CGTalk Moderation
01-13-2006, 06: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.