ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression error: unclosed token, have no idea what it is

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Cabestany
Expression error: unclosed token, have no idea what it is
on Aug 9, 2017 at 10:46:51 pm
Last Edited By David Cabestany on Aug 9, 2017 at 10:52:38 pm

I'm getting the following error:

Unclosed token


when applying the expression below, have no idea what it means and can't seem to fix it, can anyone help?

Thanks in advance.

t=time;

if
(t>=5.75 && <6.2)
{
random(-3,3)
}
else
0
;


Return to posts index

David Cabestany
Re: Expression error: unclosed token, have no idea what it is
on Aug 9, 2017 at 11:01:13 pm

Nevermind, I know why.


Return to posts index

Ben Robinson
Re: Expression error: unclosed token, have no idea what it is
on Nov 13, 2017 at 2:39:32 pm

What was the answer to this? I'm getting a similar error, but can't work out why...?


Return to posts index


David Cabestany
Re: Expression error: unclosed token, have no idea what it is
on Nov 13, 2017 at 3:10:37 pm

You need to specify the property or variable in the conditional for both the first and second statements (I'm not sure if those are the names of the parts of the expression), so in my example instead of

(t<=5.75 && <6.2)

it should be

(t<=5.75 && t<6.2)

Hope this helps.
D.


Return to posts index

Ben Robinson
Re: Expression error: unclosed token, have no idea what it is
on Nov 13, 2017 at 9:01:44 pm

Awesome! Thank you. I don't think I've used the && statement before--so obviously wasn't aware of the syntax.

Thanks for your help.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]