How to animate piano keys?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2005
How to animate piano keys?

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
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
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
- -
The views expressed on this post are my personal opinions and do not represent the views of my employer.
  11 November 2005
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.

Last edited by Darter : 11 November 2005 at 04:23 AM.
  11 November 2005
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:30 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.