Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AfterEffects 2019 will not run ECMAScript 2018 scripts

New Here ,
May 18, 2019 May 18, 2019

Despite this being advertised as a feature.

I can't even run a one line script with

let test = 10;

Throws an error saying ';' expected.  However, if I change 'let' to 'var' then it works.

Has anyone been able to run scripts using the new syntax?

430
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 18, 2019 May 18, 2019

Are you talking about scripting or expressions? The expressions engine is what was updated (based on ECMAScript 2018), but the scripting engine wasn't (as far as I know). This opacity expression works for me:

let test = 10;

test

but this script does not, returning the error message you mentioned:

let test = 10;

alert (test);

Dan

Translate
Community Expert ,
May 18, 2019 May 18, 2019

Are you talking about scripting or expressions? The expressions engine is what was updated (based on ECMAScript 2018), but the scripting engine wasn't (as far as I know). This opacity expression works for me:

let test = 10;

test

but this script does not, returning the error message you mentioned:

let test = 10;

alert (test);

Dan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 18, 2019 May 18, 2019
LATEST

Yes, I am referring to scripting.  Wow that is incredibly disappointing.  I would have never thought they would have 2 different javascript engines in the same product.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines