Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Default Value Until Changed?

  • Default Value Until Changed?

    Posted by Kurt Barken on July 3, 2015 at 4:41 am

    Im working with Trapcode SoundKeys and Video Copilot’s Optical Flares plugins to create an audio visualizer.

    I want the brightness of the flare to change based on the Output value of Sound Keys, but remain a certain brightness when Sound Keys isn’t outputting anything. To clear things up, I want to have the Flare Brightness stay at 150 until Sound Keys gets a signal and then change the flare brightness in accordance with Sound Keys until the Sound Keys signal stops.

    I’ve posted my current expression of how the flare changes with Sound Keys, but when Sound Keys doesn’t have a signal, the flare just disappears (The brightness is set to 0).

    Any help is much appreciated!

    thisComp.layer("Sound Keys").effect("Sound Keys")("Output 1")*20

    Kurt Barken replied 11 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 3, 2015 at 5:23 am

    I think all you have to do is add your base value:

    150 + thisComp.layer(“Sound Keys”).effect(“Sound Keys”)(“Output 1”)*20

  • Kurt Barken

    July 3, 2015 at 5:51 am

    Thank you so much! This is exactly what I was looking for! Apologies if this was a dumb question, but I’m still getting the hang of expressions.

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