View Full Version : How to animate piano keys?

11 November 2005, 03:18 PM
This is going to be hard to explain. I've got a piano modelled and what I want to do now is animate the keys as if some guy is doing one of those runs across all keys. You know, when you put your finger at the key for the lowest tone and run it across the keyboard up to the highest tone.

How could you animate the keys rotation in a kind-of automatic way because I don't want to keyframe all the 97 keys that I've got. Can you somehow trigger a pre-recorded animation (rotation 0° > -5° > 0° in lets say 10 frames) by the position of a Null-Object?

This way I could simply run the Null-Object from one end of the keyboard to the other. But how do you setup something like this? I've got some fairly good knowledge of Xpresso but I have no clue of how to start with such a triggering.

Or is there an other good way of animating this.

11 November 2005, 03:49 PM
This is what I have until now:

It uses the x-position of a Null to trigger Visibility On/Off. But I'm stuck putting a rotation animation instead of the Visibility change.

11 November 2005, 04:10 PM
take a look at this. I use TP to create the keys and i switch them between groups to control animation.
Another option is to control animation directly via a range mapper and a status user data.

Hope this helps

11 November 2005, 03:51 AM
Yet another option is my WaveMaker expression.

Wave direction and speed are controlled by the Wave Multiplier setting on the first XPresso tag. Rotation strength and falloff are controlled using the Spline settings on the second tag.

CGTalk Moderation
11 November 2005, 03:51 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.