Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions AE 5.5 sync rotation to audio – deadline looming

  • AE 5.5 sync rotation to audio – deadline looming

    Posted by Brian Tetamore on February 26, 2007 at 6:00 pm

    Yeah, I’m stuck with 5.5 still, and yes I’m on a project with a deadline this week. We are just creating a very simple animation that includes a clock ticking on the wall in the an office (cartoon).

    Since there is no “Convert Audio to Keyframes” feature in 5.5, does someone know a technique to sync an audio file of a “clock ticking” to the rotation keyframe of the second hand of our clock?

    And finally yes, we’ll be upgrading after this project. Can you believe I can’t find AE 7.0 Pro upgrade in a local store near Denver?

    thanks

    The Visual Rabbi

    Brian Tetamore replied 19 years, 2 months ago 3 Members · 7 Replies
  • 7 Replies
  • Mike Clasby

    February 26, 2007 at 7:49 pm

    OK, there’ probably lots of ways to do this, but here’s two.

    1) Tapdcode’s Sound Keys. I don’t know if it’s compatible with AE5.5 but it’s way better than AE’s Convert Audio To Keyframes.

    2) If you don’t want to spend the bucks, or it’s not compatible, try this, Two keyframes and a loop expression.

    I’m assuming you ticking clock is uniform, I mean consistent in it’s ticking.

    Import you ticking audio and “LL” reveals the waveform. Ay the first spike in the waveform set you first rotation keyframe for your second hand layer. Go to the next spike and add 6 degrees (360/60) to your rotation. Now alt click the rotation stopwatch and paste in this expression:

    loop_out(“offset”,0)

    This is a loop expression but it adds the values incrementally, so the second hand keeps going.
    If you want the second hand to snap then hold every second (instead of a smooth rotation) right click and change the keyframes to hold keyframes.

    Oh, yes, the ticking won’t start until that second reframe you set, so you might have to slide the layer left or right to get it to start where you want.

  • Lloyd Alvarez

    February 26, 2007 at 7:50 pm

    If the clock ticking is every second, then you dont need to sync it to the audio, you can just program it to rotate every second (add to rotation of second hand):

    Math.floor(time);

    if you must sync, you can use SoundKeys from Trapcode: https://www.trapcode.com/products_soundkeys.html

    -Lloyd

  • Lloyd Alvarez

    February 26, 2007 at 7:56 pm

    Actually the correct expression would be this:

    Math.floor(time) * 6;

  • Mike Clasby

    February 26, 2007 at 8:05 pm

    I forgot about “Math.floor(time);”, Actually I just hack/build from other peoples stuff, so thanks Lloyd for the expression. To get it to work for me I need to change the expression to:

    value + Math.floor(time)*6;

    Then you can start your second hand wherever you want.

    Goodwill to all, and to all a good morning (Night if it applies).

  • Lloyd Alvarez

    February 26, 2007 at 8:45 pm

    Since you are archiving the expression.. to really polish it off, you should make it like this:

    value + (Math.floor(time) * 6)%360;

    This will reset the rotation every cycle instead of continually growing.. AE actually has limits, so it’s good practice to reset counters when feasible.

    -lloyd

  • Mike Clasby

    February 26, 2007 at 10:17 pm

    Thanks.

  • Brian Tetamore

    February 26, 2007 at 11:26 pm

    Thanks guys. Your solutions hit the spot. Thank you so much.

    – Brian

    The Visual Rabbi

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy