-
New to expressions: Add to value everytime question
I have a composition that has a checkbox control randomly turning on and off. I want to be able to control the color of a solid so that everytime the checkbox turns on, it adds a set number to a colorize hue attribute.
So far I’ve figured out
x = thisComp.layer("Controller").effect("Random On/Off")("Checkbox")if (x=1) {value+50}
but everytime it turns off, it goes back to zero. Is there a way to keep adding 50 everytime it turns on?I’m guessing it’s very simple.