Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions arrow function not working

  • arrow function not working

    Posted by Ze’ev Gilad on August 19, 2020 at 3:03 am

    Adobe says that you can use arrow functions in expressions.

    But if I try to do
    r=(x) => Math.round(x*100)/100
    I get an error: “> does not have a value”
    Whereas this works in normal JS environment.

    If I do
    function r(x) {return Math.round(x*100)/100};
    it works fine.

    Am I missing something?

    Ze’ev Gilad replied 5 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    August 19, 2020 at 7:13 am

    Check if File>Project Settings> Expressions is set to “JavaScript” and not “Legacy ExtendScript”

    Andrei
    My Envato portfolio.

  • Ze’ev Gilad

    August 19, 2020 at 3:38 pm

    OMG, Can’t believe I didn’t check that. Thanks!

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