Evenly Space Edges

User avatar
myara
Posts: 358
Joined: 28 Sep 2011, 10:33

Evenly Space Edges

Post by myara » 06 Dec 2013, 16:49

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
M.Yara
Character Modeler | Softimage Generalist (sort of)

Darcvizer
Posts: 2
Joined: 18 Jan 2015, 14:10

Re: Evenly Space Edges

Post by Darcvizer » 17 Jan 2016, 20:52

Not work http://take.ms/6tx4D

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

Bullit
Moderator
Posts: 2431
Joined: 24 May 2012, 09:44

Re: Evenly Space Edges

Post by Bullit » 17 Jan 2016, 21:49

Link not working. Would be nice if myara can upload it again.

User avatar
Mathaeus
Posts: 1722
Joined: 08 Jun 2009, 21:11
Location: Zagreb, Croatia

Re: Evenly Space Edges

Post by Mathaeus » 17 Jan 2016, 22:17

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.
The renderer "turtle" used by this scene, is not currently available. The "turtle" renderer will be used instead.

User avatar
myara
Posts: 358
Joined: 28 Sep 2011, 10:33

Re: Evenly Space Edges

Post by myara » 18 Jan 2016, 10:12

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.
M.Yara
Character Modeler | Softimage Generalist (sort of)

Darcvizer
Posts: 2
Joined: 18 Jan 2015, 14:10

Re: Evenly Space Edges

Post by Darcvizer » 18 Jan 2016, 17:37

Thank you very much desired thing! :-bd

User avatar
mc_axe
Posts: 398
Joined: 12 Mar 2013, 18:44

Re: Evenly Space Edges

Post by mc_axe » 18 Jan 2016, 20:54

Nice nice nice!

RoN43
Posts: 18
Joined: 09 Nov 2009, 18:32

Re: Evenly Space Edges

Post by RoN43 » 27 Apr 2017, 14:08

Thanks!