Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions adding a js library to a jsx script?

  • Andrei Popa

    August 4, 2021 at 7:11 am

    If it’s one file only, you can add it by

    #include library.js

    or

    //@include library.js

    The second way avoids the errors from the linters.

    Note that the library should be in the same folder as the script.

  • Tomas Bumbulevičius

    August 4, 2021 at 7:49 am

    Or you can define full absolute path in the include / relative one with backslashes syntax?

  • Rodrigo Trovao

    August 5, 2021 at 4:26 am

    Worked. Tried include before, but thought that it didnt work.
    Thats because i didnt try backslashes yet!
    Thanks you both!
    :s

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