-
Strummin’ a guitar
Ok, here’s a nice brain teaser for you all…
I have a character whose arm I’d like to animate strumming a guitar using the puppet tool and Convert Audio to Keyframes (CAK). I’ve got the guitar track isolated, so it’s a really clean audio sample to work with. The puppet tool is a bit unpredictable, but I’ve got it looking somewhat believable.
I know I need to write an expression to get the arm to move along with the audio. I’m still very new to expressions and this is way outta my league.
I’ve got my keyframes created from my audio track, and they seem to go between 0 and 12. My arm position needs to move on the Y axis from 25 to 35.
Since it’s a guitar, the strumming needs to vacillate between up and down motions. In other words, it’s not just a function of making the loud parts go up and the soft parts go down. Something tells me there’s a Sin function in my future.
Bonus points for making the X position vary randomly from 55 to 60.
Anyone like to take a crack at this?
Thanks,
Rob