Can I move a mask, controlled by a bone?

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

Moderators: Víctor Paredes, Belgarath, slowtiger

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

Can I move a mask, controlled by a bone?

Post by ruibjr »

Is it possible to move shapes (and a mask, for instance), based on a bone's angle?
The idea would be to have a bone control a shape position, so that shape would move up and down, based on the bone angle.
Can that be done without having to resort to the use of Lua scripts?

[edit]
Ok, let me clarify it :)
I would like the bone's angle to control the linear position of a shape - say, its Y position.
For instance: a 0 degree would leave the shape at its original position; a 30 degrees angle would move the shape, say, 100 pixels up; a 60 degrees angle would move the shape 200 pixels (that is, a linear change).
[/edit]

Thanks,

Rui
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Checkout my "famous" springy bone composition(*).
Say you have three bones in a linear chain. A<B<C (C is parent of B and B parent of A)

You can obtain linear oscillation of A based on rotation of C if you do like this:

B.length=C.length
B.initial_angle=180
Constraints B.angle=-1*C.angle
This is a simple rod piston mechanism that converts a rotation (C rotation) into a oscillation (A global position)

Hope it helps ;)

-G

(*) Hmmm it seems that I'm getting old. I'm quoting my self!
ruibjr
Posts: 113
Joined: Mon Apr 20, 2009 12:29 am
Location: Brazil

Post by ruibjr »

That's really cool.
Thanks, genete.
sbtamu
Posts: 1915
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Post by sbtamu »

Genete wrote:
(*) Hmmm it seems that I'm getting old. I'm quoting my self!
It gets worse, you know you are getting old when you take an aspirin before you go to bed because you hurt to much when you get up in the morning to go take one.
Sorry for bad animation

http://www.youtube.com/user/sbtamu
Post Reply