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
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
Evenly Space Edges
Evenly Space Edges
M.Yara
Character Modeler | Softimage Generalist (sort of)
Character Modeler | Softimage Generalist (sort of)
Re: Evenly Space Edges
Link not working. Would be nice if myara can upload it again.
Re: Evenly Space Edges
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.myara wrote:
To do: Making it a Scripted Operator (maybe ICE based ?)
Re: Evenly Space Edges
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.
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)
Character Modeler | Softimage Generalist (sort of)
Re: Evenly Space Edges
Thank you very much desired thing!
Who is online
Users browsing this forum: No registered users and 30 guests