Skip to main content
Participant
January 18, 2018
Answered

Question about node.js implementation in .jsx file.

  • January 18, 2018
  • 1 reply
  • 835 views

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

This topic has been closed for replies.
Correct answer Bruce Bullis

.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.

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
January 18, 2018

.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.