2 Replies Latest reply on Mar 23, 2016 6:01 AM by Sean_Bradford

    Animate Layer Opacity with Music On/Off expression?

    Sean_Bradford

      Hello All,

       

      I am seeking to animate a layer’s opacity in accordance with an Audio Amplitude input. For example, when a kick in the song occurs with a slider value of 50 I want the layer to turn on and stay on till another kick of 50 value turns it off.


      This is what I am currently using however once the value is reached it turns off. Is there a way to write an expression that connects this to a checkbox control?


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

      linear(Music,45,70,0,200)


      Thanks in advance for your help!


      -Sean Bradord