Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions back & forth movement linked to audio

  • back & forth movement linked to audio

    Posted by Jenny Conway on April 2, 2012 at 4:52 pm

    Hi,
    Very new to Expressions. Searching past posts, I think I know part of this, but I’m missing something. I need to make a word slant back and forth, synced with music. When I use a straight expression linking to audio, it only slants in one direction. I believe I need to use an expression tied to a slider, but can’t quite figure out how to set a range of values so that it goes back and forth but also is linked to the audio channel keyframes? Can you please steer me in the right direction? Thanks!!
    -Jenny

    Jenny Conway replied 14 years, 1 month ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    April 2, 2012 at 5:01 pm

    It depends on what you’re doing exactly, but it might be something like this:

    aud = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    audMax = 20;
    linear(aud,0,audMax,-30,30)

    Dan

  • Jenny Conway

    April 2, 2012 at 5:08 pm

    Thanks for the reply, Dan! So I won’t be using the pick whip to link to the audio channels, just straight up Expressions? Let me try this and see- thanks so much!

  • Dan Ebberts

    April 2, 2012 at 5:20 pm

    Usually, (and I think that’s the case in your situation) you’ll need to remap the audio values to a range that makes sense for what you’re trying to do. That’s where the linear() function comes into play.

    Dan

  • Jenny Conway

    April 2, 2012 at 5:31 pm

    Yes, you’re right. That works perfectly! Thank you for untangling the problem for me- makes much more sense now!

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