Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions error: Math.trunc() is not a function

  • error: Math.trunc() is not a function

  • Seth Olson

    December 19, 2022 at 5:48 pm

    it suggests Math.trunc() when i type it, but then it says its not a function. The slider is a number, and did parseInt() to make sure it was a number. I’m in AE 23.1.0

  • Dan Ebberts

    December 19, 2022 at 6:20 pm

    You probably have File > Project Settings > Expressions set to Legacy ExtendScript. Change it to JavaScript and the error should go away.

  • Seth Olson

    December 19, 2022 at 6:21 pm

    oh wow, thank you! Not sure how that happened.

Viewing 1 - 3 of 3 posts

Log in to reply.

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