Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Audio Amplitude Expression Question

  • Audio Amplitude Expression Question

    Posted by Christine P. on June 7, 2005 at 5:15 pm

    I am using an expression to link the opacity of one layer to the Audio Amplitude layer. My problem is that since the range of my audio layer is so minimal, the opacity change is not visible to the eye. Is there a way to set the minimum and maximum range so that my minimum value of the audio layer becomes 0% opacity and the maximum becomes 100% opacity.

    I appreciate any help you may be able to give!

    Thanks,
    Christine

    Christine P. replied 20 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 7, 2005 at 5:58 pm

    Something like this should do it:

    minAudio = 0;
    maxAudio = 15;
    minOpacity = 0;
    maxOpacity = 100;

    audio = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    linear(audio,minAudio,maxAudio,minOpacity,maxOpacity)

    Adjust the parameters to fit your situation.

    Dan

  • Christine P.

    June 7, 2005 at 6:05 pm

    Thanks so much for your help! I tweaked the numbers to fit my parameters and it’s working wonderfully.

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