Skip navigation
Shaun Phillips
Currently Being Moderated

Expression needed!! Any help appreciated. Using audio converted keyframes

Oct 22, 2011 5:39 AM

Hi all,

 

 

I'm hoping this isn't to much of a complicated issue. I use after effects regularly but the expression stuff does have me baffled. I can convert the audio to keyframes with out an issue. What I'm trying to achieve is this - I have a talking head with the bottom mouth part cut on a sperate layer. i'd like the mouth layer to move up and down being driven by the audio. I can pick whip to the audio no problem but then I need to ensure it only effects one of the position values and also 'fine tune' how the audio effects that value.

 

Please help!!

 

Thanks!!

  • Currently Being Moderated
    Community Member
    Oct 22, 2011 10:07 AM

    I'm not sure what you're doing with the slider, but I think this is all you need for the mouth:

     

    aud = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider);

    y = linear(aud,0,36,1492,1547);

    [1001.5,y]

     

    If you already have the mouth positioned at [1001.5,1492], you could just do this:

     

    aud = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider);

    y = linear(aud,0,36,0,55);

    value + [0,y]

     

    Dan

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Oct 22, 2011 1:26 PM

    I'm sure you figured out that there's a typo in the expression I posted. I left out the closing quote on "Slider".

     

    Dan

    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points