-
Expression for decreasing a value over time after a keyframe is hit?
So here’s a fun one. I have a null with a slider on it, and that slider has a bajillion keyframes. I also have a light layer. What I need to happen is: every time there’s a slider keyframe of a certain value (say 50), I need the light to change to 100% intensity and then fade back to zero over the course of a second or two. Here’s the intensity expression I have so far:
pitch=thisComp.layer(“midi”).effect(“ch_0_pitch”)(“Slider”);
if(pitch==82){[100];}
else{[???];}I figure the key is in that else{} field…and something involving “value-“…but I’m stumped! Any ideas?
Thanks!