Copy link to clipboard
Copied
Is it possible to include the "polylabel" algorithm in the After Effects .jsx script, without using CEP panel.
Link to the algorithm:
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.