Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Simple expression error

  • Simple expression error

  • Luuk Arts

    February 22, 2021 at 9:32 pm

    I’m fairly new to writing my own expressions in After Effects. That said I can’t seem to figure out why this line of code isn’t working.

    Must be something I’m just missing..

    Thanks in advance!

  • Brendon Murphy

    February 23, 2021 at 2:26 am

    The newer Javascript expression engine is more strict than the legacy extendscript engine. if/else statements cannot be on a single line. Try this instead:

    if(thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider") == 5) {


    } else {



    I’ll note that you can change the expression engine you’re using by going to File>Project Settings and then picking the “Expressions” tab.

Viewing 1 - 2 of 2 posts

Log in to reply.

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