Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling the audio in a slider

  • Controlling the audio in a slider

    Posted by Ken Latman on March 10, 2021 at 5:49 pm

    I relatively know how to setup a group of layers to be attached to slider so they can be visible on and off. Something like the following on the opacity value.

    val=Math.round(comp(“Standard Intro”).layer(“Control Layer”).effect(“Slider Control”)(“Slider”));

    if (val>1 && val<3)

    100

    else

    0

    If I have a bunch of audio clips lined up would it be something like this on the Audio Levels

    val=Math.round(comp(“Standard Intro”).layer(“Control Layer”).effect(“Slider Control”)(“Slider”));

    if (val>1 && val<3)

    0.00

    else

    -192.00

    Chris Voelz replied 5 years, 5 months ago 2 Members · 4 Replies
  • 4 Replies
  • Chris Voelz

    March 10, 2021 at 9:09 pm

    you’ll need to return the value in an array for an audio layer, so [0 , 0] and [-192 , -192]

  • Ken Latman

    March 11, 2021 at 1:19 pm

    Thank you Chris.

    much appreciated.

  • Ken Latman

    March 12, 2021 at 1:57 pm

    I just tested this a s MOGRT and it doesn’t seem you can choose between audio in one. Is that correct? I am using AE 2020. I am not able to use 2021 at this time do to my work environment.

  • Chris Voelz

    March 15, 2021 at 5:38 pm

    What I have done in a template (NOT a MOGRT) but should work the same is tie each audio layer to a checkbox. Then in the MOGRT the user can choose which audio layer they want by selecting a checkbox. I’ve never played with audio in MOGRT’s so this is all untested.

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