Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions What’s wrong with this syntax?

  • What’s wrong with this syntax?

    Posted by Sean Jenkinson on July 6, 2020 at 8:59 am

    Hi,

    I’m following a tutorial in ‘The Power of Expressions’ about optimisation in expressions and I created the following three lines (as directed by the text in the book):

    var Variable1 = 10;
    let Variable2 = 10;
    const Variable3 = 10;

    After Effects has disabled this expression because of a syntax error on line 2, which it claims is missing an expected ‘;’. I’ve checked and rechecked the text in the book but I can’t see a difference.

    What am I not understanding about this?

    I’m using AE CC2020.

    Many thanks.

    Sean Jenkinson replied 6 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Scott Mcgee

    July 7, 2020 at 7:58 am

    Sounds like you are either using an old version of after effects or haven’t turned off Legacy in your expression settings in project settings.

  • Sean Jenkinson

    July 7, 2020 at 8:41 am

    That’s solved it. Many thanks.

    SJ.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy