Page 1 of 1

Bone-controlling-its-own-switch-layer experiment

Posted: Sat May 23, 2009 6:01 pm
by ruibjr
Hello guys.
I have ceated a little experiment, using the bone-control script created by HeyVern and modified by Genete and myself.
I liked the results so much, that I wanted to share them with you.
Forgive me for the bad drawing, but what really matters here is that I was able to animate the arm by just using the IK bone tool, and the script figure what was the best drawing for each pose.
The setup was pretty-straightforwad:
1. I drew all the poses for the arm (12, for this simple, quick, experiment).
All poses were hand-drawn and painted in MangaStudio.
2. I have created a switch layer and called it cb.Arm - can be any name, as long as it starts with "cb.".
3. I have created a bone layer, parent to the switch layer.
In that layer, I have created two bones for the arm, and have named the lower arm bone "cb.Arm", i.e. the same name as the switch layer it is to control.
[EDIT]
4. I have attached the cb.Lua script to the bone layer
[/EDIT]
After that, I was able to animate the arm by simply rotating thebone and creating key frames.
(I had to insert a keyframe for each frame, thou, but am going to improve the script so that it does it autamaticaly, if that is even possible).
Here is the video:

http://www.youtube.com/watch?v=RgEmqxTDtuQ

Does anybody know a free website where I can upload the files to, so that everyone can have access to them?
I have a geocties account, but geocities is going to be discontinued in a couple of months, so I would not like to use it.

Cheers,

Rui

Posted: Sat May 23, 2009 6:08 pm
by synthsin75
Nice work. You can upload the file to Mediafire.com, many people here use it.

Posted: Sat May 23, 2009 6:09 pm
by ruibjr
Thanks, Synth.
I am going to upload that right now.

[EDIT]
Here is the zip with all the files in it.
(I am not sure this would work with the non-Pro AS).

http://www.mediafire.com/download.php?ra2zyzzamz3

Cheers.
[/EDIT]

Posted: Sat May 23, 2009 9:25 pm
by mkelley
Rui,

It is easy to create keyframes in LUA -- if you have any problems let me know and I'll do it for you (but there are many scripts around here with examples, like KeyAll).

Posted: Sat May 23, 2009 9:55 pm
by ruibjr
Cool!
Thanks, MK.

Posted: Sun May 24, 2009 12:13 am
by Genete
using the bone-control script created by HeyVern and modified by Genete and myself.
Wow, I don't remember have modified or even used that script! :)
-G

Posted: Sun May 24, 2009 1:11 am
by ruibjr
Hi Genete.
It was a couple of monthsago, I think.

In this post:

viewtopic.php?p=72844&highlight=#72844

[EDIT]
BTW, the final version of the script is here:

viewtopic.php?p=73011&highlight=#73011

[/EDIT]

Cheers.