Skip navigation
Currently Being Moderated

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

Oct 22, 2011 4: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!!

 
Replies
  • Currently Being Moderated
    Oct 22, 2011 9:07 AM   in reply to Shaun Phillips

    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
    Oct 22, 2011 12:26 PM   in reply to Shaun Phillips

    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)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points