FORUMS: list search recent posts

Default Value Until Changed?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kurt Barken
Default Value Until Changed?
on Jul 3, 2015 at 4:41:12 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


Return to posts index

Dan Ebberts
Re: Default Value Until Changed?
on Jul 3, 2015 at 5:23:10 am

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

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



Return to posts index

Kurt Barken
Re: Default Value Until Changed?
on Jul 3, 2015 at 5:51:14 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]