-
Trigger expression only when there’s no keyframe
Hi everyone. I’m trying to set up a layer so that a flicker occurs, but I also need to precisely animate the opacity in certain points. Up until now the best way to do so seems to be setting a checkbox controller and use an if/else statement to check for its value. Though this works, it requires me to add the extra controller and keyframe it. I tried this expression:
if (!value) {wiggle(10,50);}
else {value;}Now, while it seems to work perfectly fine on a test comp (a red solid with its opacity animated), it does not work in my bigger comp. It simply does nothing at all.
I was wondering if the code above is legit and what would be the easiest way to achieve this effect.
Thank you
—
Gabriele Cannizzaro