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

Want to share your Moho work? Post it here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
ruibjr
Posts: 113
Joined: Mon Apr 20, 2009 12:29 am
Location: Brazil

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

Post 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
Last edited by ruibjr on Sat May 23, 2009 6:09 pm, edited 1 time in total.
User avatar
synthsin75
Posts: 10276
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

Nice work. You can upload the file to Mediafire.com, many people here use it.
ruibjr
Posts: 113
Joined: Mon Apr 20, 2009 12:29 am
Location: Brazil

Post 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]
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Post 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).
ruibjr
Posts: 113
Joined: Mon Apr 20, 2009 12:29 am
Location: Brazil

Post by ruibjr »

Cool!
Thanks, MK.
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post 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
ruibjr
Posts: 113
Joined: Mon Apr 20, 2009 12:29 am
Location: Brazil

Post 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.
Post Reply