Copy link to clipboard
Copied
This will probably be a confusing question, but I'm going to give it a shot.
In my panel development, I use the PProPanel as a base to start developing.
In that 'package', I have:
ext.js
index.html
PProPanel.jsx
Premiere.jsx
plus other files and folders.
In my development, I have created a library of custom functions that I use across multiple panels.
(example: myPProFunctions.js, myAEFunctions.js, myCommonFunctions.js)
I add this to individual panels by using an #include line, usually in the Premiere.jsx or the AE.jsx.
However, I've created some library functions that I can utilize in the ext.js and index.html.
My question is, where do I add the #include or the script src line so the libraries can be utilized across all files?
I've found that when I add the #include line to the Premiere.jsx file the ext.js file can't see the functions.
thanks for any input,
Kelly
Hi Kelly,
if I'm not mistaken the ExtendScript domain and the HTML5 domain are entirely separated, functions will not permeate from one side to the other. The only thing you can pass between them are JSON objects (and simpler types of course).
On the ExtendScript side you use includes (#include or @include), on the HTML5 side it's the easiest to load every script file in order in the <head> area. You could alternatively use jQuery's getScript, but this seems to not have worked reliably in the past
...Copy link to clipboard
Copied
Hi Kelly,
if I'm not mistaken the ExtendScript domain and the HTML5 domain are entirely separated, functions will not permeate from one side to the other. The only thing you can pass between them are JSON objects (and simpler types of course).
On the ExtendScript side you use includes (#include or @include), on the HTML5 side it's the easiest to load every script file in order in the <head> area. You could alternatively use jQuery's getScript, but this seems to not have worked reliably in the past.
Copy link to clipboard
Copied
Thank you for the response. Makes sense.