Page 1 of 1

Evenly Space Edges

Posted: 06 Dec 2013, 16:49
by myara
I was checking some scripts in the net and I found Alan Fregtman's evenCurves.py gist.github.com/darkvertex?sort=created&direction=asc

It was very interesting to read even if I don't write too much python ( I just cant get used to the "application" writing and its difficult to understand error logs ), and I though, what if I do use this to re-align points in selected edges ?!

Instead of using complicated Math (that always get me headaches), I could just create curves and align the points to the curve!

I gave it a shot and here it is:


The code is still a little dirty, but it works. Most of the time at least.

Warning: If you are a python newbie I wouldn't recommend to learn from my code :D

To do: Making it a Scripted Operator (maybe ICE based ?)

Moderator edit: As our URL tags are annoyingly picky sometimes - especially with URLs without "www" - I created a tinyurl to circumvent the problem - HB

Re: Evenly Space Edges

Posted: 17 Jan 2016, 20:52
by Darcvizer
Not work http://take.ms/6tx4D

Newcomer (<20 posts) alert: please use the URL tags - HB

Re: Evenly Space Edges

Posted: 17 Jan 2016, 21:49
by Bullit
Link not working. Would be nice if myara can upload it again.

Re: Evenly Space Edges

Posted: 17 Jan 2016, 22:17
by Mathaeus
myara wrote:
To do: Making it a Scripted Operator (maybe ICE based ?)
There's 'strand fitting' node inside Melena, which is doing exactly what you described, much faster than running the iterations directly in ICE. Input could be any array of 3d vectors. Anyway perhaps it 'fits' better as an live operator, I've used it for things like flag animation, deformed by plain turbulence, then normalized back to certain relative or absolute length in one poly-flow direction. Looks much more realistic.

Re: Evenly Space Edges

Posted: 18 Jan 2016, 10:12
by myara
I uploaded it to my dropbox
https://www.dropbox.com/s/22urwiejf8qei ... e.zip?dl=0

@ Darcvizer
The script you are using is Alan's evenCurves.py and it works with curves only.

@ Mathaeus
Thanks for the tip. I wanted to do a live version, but ended up dropping this one since it did the work when I needed it, and nowadays I don't code too much in Softimage.

Re: Evenly Space Edges

Posted: 18 Jan 2016, 17:37
by Darcvizer
Thank you very much desired thing! :-bd

Re: Evenly Space Edges

Posted: 18 Jan 2016, 20:54
by mc_axe
Nice nice nice!

Re: Evenly Space Edges

Posted: 27 Apr 2017, 14:08
by RoN43
Thanks!