Script for Swaying Hair?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
kcfotog
Posts: 11
Joined: Tue May 16, 2006 4:33 pm

Script for Swaying Hair?

Post 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!
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

Heyvern created a "springy" script which could help: search the forum for "springy" and see what you get...
You can't have everything. Where would you put it?
kcfotog
Posts: 11
Joined: Tue May 16, 2006 4:33 pm

Post 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.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
kcfotog
Posts: 11
Joined: Tue May 16, 2006 4:33 pm

Post 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!
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post 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!!!

:D
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post 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!
You can't have everything. Where would you put it?
kcfotog
Posts: 11
Joined: Tue May 16, 2006 4:33 pm

Post by kcfotog »

I'll give the bones with constraints method a go.
Thanks for the help everyone. Gracias para la ayuda!
Post Reply