Activity › Forums › Adobe After Effects Expressions › adding a js library to a jsx script?
-
adding a js library to a jsx script?
Posted by Rodrigo Trovao on August 3, 2021 at 9:54 pmtheres a way to add a js library to a jsx script?
Rodrigo Trovao replied 4 years, 9 months ago 3 Members · 3 Replies -
3 Replies
-
Andrei Popa
August 4, 2021 at 7:11 amIf 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 amOr you can define full absolute path in the include / relative one with backslashes syntax?
-
Rodrigo Trovao
August 5, 2021 at 4:26 amWorked. Tried include before, but thought that it didnt work.
Thats because i didnt try backslashes yet!
Thanks you both!
:s
Reply to this Discussion! Login or Sign Up