Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Making audio react to opacity

  • Making audio react to opacity

    Posted by Dumeyni Arnaud on July 24, 2008 at 1:14 pm

    Hi all, thank you for reading this.

    I’m a little noob with expressions and now I just realized i REALLY a noob.

    I’m trying to make the audio level of a sfx go up and down along with one layer’s opacity : when the opacity go down, the audio goes up, and vice versa.

    I linked the audio level to the opacity, plus a linear expression :

    temp = thisComp.layer(“fond anime.avi”).transform.opacity;
    [temp, temp];
    S=linear(temp,0,100,-48,0);
    [S,S]

    But the audio levels aren’t changing.
    Any ideas ? Please.. I can do your laundry 🙂

    Lloyd Alvarez replied 17 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Lloyd Alvarez

    July 24, 2008 at 9:09 pm

    you don’t need the temp array, but it should work regardless. try this:

    temp = thisComp.layer(“fond anime.avi”).transform.opacity;
    S=linear(temp,0,100,-48,0);
    [S,S]

    -Lloyd

    https://aescripts.com

  • Dumeyni Arnaud

    July 25, 2008 at 1:57 pm

    Thanks Lloyd, I’ve tried but its not working.
    I tried it again in a freshly created comp ( the solid and the audio ) its still didn’t worked.

    Its ok I just keyframed the audio level manually but i’m still curious why a simple expression like this didn’t worked out.

  • Lloyd Alvarez

    July 25, 2008 at 1:59 pm

    where are you applying the expression? it works for me here

    https://aescripts.com

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