Copy link to clipboard
Copied
Hello ,
I have a question regarding node.js implementation in a Premiere Pro panel.
I use classic file structure as i have a html file and a jsx file for scripting that is invoked with evalScript.
It seems that node.js does not work in the jsx file as when I try to use require I get an error that require is not a function,
but if I use it in html file in <script></script> it works fine.
Does anyone know why this happens and how how to fix this?
Also I had an idea to have all script in the html file but It appears that I can't access any Premiere functions as I get an error "app is undefined" (again, this works fine in the jsx file).
Best Regards,
Klemen
.jsx files are ExtendScript, interpreted by PPro's internal scripting engine.
Node.js is JavaScript, interpreted by an instance of Chromium, as part of our CEP (panel hosting) components.
Typically, panels use Node.js in their JavaScript layer, before/after they use ExtendScript.
Copy link to clipboard
Copied
.jsx files are ExtendScript, interpreted by PPro's internal scripting engine.
Node.js is JavaScript, interpreted by an instance of Chromium, as part of our CEP (panel hosting) components.
Typically, panels use Node.js in their JavaScript layer, before/after they use ExtendScript.