Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression(hold opacity connected to audio keyframes)

  • Expression(hold opacity connected to audio keyframes)

    Posted by Michael Stark on June 18, 2008 at 3:09 pm

    So what I’m trying to do with no luck is this. Let’s say we have two layers of footage, and one audio layer – making it a total of 3 Layers.

    What I want to do is have the top most layer fluctuate it’s opacity according to the audio keyframes. I’m not really sure about audio keyframes but I’m sure I could figure it out. My problem also is that I don’t want the opacity to be any percentage but 0% or 100%. Aka a strobe effect according to sound.

    Just to paint a picture, I have one layer of moving 3d text, and on top of that is the exact same footage, but rendered with a glow.

    Any help would be much appreciated because I’m new to expressions and this is a tad bit advanced for me.

    Thank you.

    Rob Mcdougall replied 13 years, 6 months ago 4 Members · 4 Replies
  • 4 Replies
  • Kevin Camp

    June 18, 2008 at 5:16 pm

    something like this may work:

    min = 0; //set minimum audio level
    max = 15; //set maximum audio level
    a = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    Math.round(linear(a,min,max,0,1)) * 100

    ‘a’ is the audio amplitude parameter for your audio layer. set ‘min’ and ‘max’ as needed for your audio levels… the layer will be 100% opacity when audio levels are above the midpoint of the audio range, and it will be 0% when levels are bellow that point….

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Michael Stark

    June 18, 2008 at 7:26 pm

    Thank you for your help. I will try it out and let you know how it works!

  • Carlos Lerias

    August 31, 2012 at 7:53 pm

    Hi Kevin.

    I have a similar situation to the one expressed above. The difference though is that I want to make the opacity change with the sound of a person talking. I want the image fade in fast when the person talks and I want the image to fade out slowly in the moments of silence.

    I was wondering if you could give me advice on this matter.

    All the best

    Carlos

  • Rob Mcdougall

    October 12, 2012 at 11:12 am

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