-
Checkbox OFF to trigger animation
Hi,
I have this expression set up with time-remap to trigger one animation IF the checkbox is On:
n = 0;
p = comp(“Controller”).layer(“Death”).effect(“Player 01”)(“Checkbox”);
if (p.numKeys > 0){
n = p.nearestKey(time).index;
if (p.key(n).time > time) n–;
}
if (n > 0 && p.key(n).value)
time – p.key(n).time
else
0However, I’m trying to get it to work only when the checkbox is turned OFF.
I’ve tried changing things around in the expression but haven’t been able to figure out what part of the expression is dictating the True/False of the Checkbox.
Any ideas?
Thanks in advance!