Page 1 of 1
Script for Swaying Hair?
Posted: Tue Apr 22, 2008 1:15 pm
by kcfotog
Fellow Pixel-Pushers,
I have a scene where a character is sitting idle and the only thing that is moving is her hair swaying in the breeze. I tried applying the "wavy" script in the AS presets, but it had way too much frequency and looked like she was underwater. I also tried tweaking those settings but I couldn't really find the sweet spot for realistic hair movement. Does anyone know of a good third-party script or perhaps an appropriate setting for the Wavy script to achieve this type of swaying motion? I'm trying to stay away from moving every point by hand and lean more on the scripting path. Thanks in advance for any help. Cheers!
Posted: Tue Apr 22, 2008 3:53 pm
by jahnocli
Heyvern created a "springy" script which could help: search the forum for "springy" and see what you get...
Posted: Tue Apr 22, 2008 5:09 pm
by kcfotog
jahnocli,
thanks for the tip. I ran a search for "springy" and came up with heyverns spring.lua and physics1.lua. However, I'm a little new at adding these to my scripts library. When I dropped them in my "menu" folder under the "scripts" folder, it renamed the two lua files to something completely different. Should I be dropping these additional scripts in the "other" folder? Thanks for your help. Regards.
Posted: Tue Apr 22, 2008 5:33 pm
by heyvern
The springs and physics scripts are still a bit... experimental. They are not ready for real production work. They take a lot of me when I work on them. I really have to get my head into it and focus intensely. I'm busy with other things right but still plan to keep working on those.
-vern
Posted: Tue Apr 22, 2008 7:18 pm
by kcfotog
HeyVern,
I appreciate the reply. I respect the time and energy you and other Moho Vanguards like Genete have put into the education and development of this software over the many years. Just out of curiosity, would you reccommend that I just stick to the "Wavy" script and tweak points by hand to get the swaying hair I was going for? Thanks for your help!
Posted: Tue Apr 22, 2008 9:08 pm
by Genete
If you watch Agent Rose videos you can learn a lot from them and the use of bones for the animation of the hair.
http://graphics.smithmicro.com/go/roseagentflash
At the bottom there are 9 amazing videos to know how it was done... and all them are free!!.
Watch and learn. It is worth!!!

Posted: Wed Apr 23, 2008 12:11 am
by heyvern
For now I would recommend animating flowing hair "by hand" or with bones as Genete mentioned. Automation is fun and can save time but for something like hair depending on what you want hand animation might give you more control and better results.
My physics scripts right now are a long way off from creating flowing hair. I hope to have that as an option in the future. I wish I could spend all my time on it. I really enjoy scripting... the problem I have is that it "consumes" my brain.
I am an artist at heart and working on that other side of my brain requires me to shift my focus. I am currently in "artist" mode right now. When I am in artist mode I can barely understand the code when I look at it... I have to get into that "code mode". It's weird. I really see how the two sides of the brain work differently. Both sides of my brain want "control". When I get into my creative mode I want to stay there... when I'm in code mode... I want to code all the time.
That is the best I can describe it. It's always been like this for me. Like I have a split personality or something.
-vern
Posted: Wed Apr 23, 2008 9:35 am
by jahnocli
I would be tempted to use both methods. Use heyvern's spring script to move the general mass of hair, and also use small bones with constraints following this for the detail. Might have a go at this myself next week!
Posted: Wed Apr 23, 2008 1:11 pm
by kcfotog
I'll give the bones with constraints method a go.
Thanks for the help everyone. Gracias para la ayuda!