ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Expression error using Checkbox control

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brock JoletExpression error using Checkbox control
by 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
Expression disabled.

Error occurred at line 3.
Comp: 'main'
Layer: 1 ('Date Stamp')
Property: 'Position'

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.

Help please.

Return to posts index

Brock JoletRe: Expression error using Checkbox control
by on Mar 24, 2010 at 9:00:30 pm

Just figured it out guys. "if" cannot be capitalized. Hope this helps someone else.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved