Expression error using Checkbox control
by Brock Jolet on Mar 24, 2010 at 8:48:09 pm
I'm trying, for the first time, to create an expression that controls a value depending on whether or not a keyed checkbox is on. This is my code.
x = comp("overlay grain").layer("frame").transform.position;
If (effect("Frame Stutter")("Checkbox") == true)
value = x + wiggle(25,5);
value = value + wiggle(25,5);
When I run this, I get the error:
After Effects warning: Function If is undefined
Error occurred at line 3.
Layer: 1 ('Date Stamp')
I have been racking my brain over what the problem is. I have used If/Else statements in the past successfully and I know that there is just something very simple that I am missing. I have also tried using "== 1" instead of "== true", but I got the same result.