Skip to main content
This topic has been closed for replies.
Correct answer Mathias Moehl

Modern JS variants and the pretty old jsx od After Effects have some syntax differences (mostly new features not available in jsx, yet). You can be lucky that copy & paste of the js code works out of the box. Maybe you also have to tweak the code or use a system like babel.

4 replies

Justin Taylor-Hyper Brew
Community Expert
Community Expert
January 13, 2023

Finding ExtendScript-ready libraries is pretty challenging these days, as ES3 is extremely old. If you need to do any advanced calculations, you'll have a much easier (and faster) time with a CEP panel.

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
January 13, 2023

Modern JS variants and the pretty old jsx od After Effects have some syntax differences (mostly new features not available in jsx, yet). You can be lucky that copy & paste of the js code works out of the box. Maybe you also have to tweak the code or use a system like babel.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Community Expert
January 12, 2023

look at the "call nested script.jsx" file, located at "C:\Program Files\Adobe\Adobe After Effects 2022\Support Files\Scripts\(instructional)".

it shows how to include another file from a script. perhaps that would work for you.

Mylenium
Legend
January 12, 2023

Since it's plain JS you should have no problems just copy & pasting into whatever you want. Of course you will need to adapt variables and replace some functions with their AE functions. Not sure what more you need to know. The specifics will depend on what you actually want to do with this.

 

Mylenium