• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Question about node.js implementation in .jsx file.

New Here ,
Jan 17, 2018 Jan 17, 2018

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

TOPICS
SDK

Views

697

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 18, 2018 Jan 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.

Votes

Translate

Translate
Adobe Employee ,
Jan 18, 2018 Jan 18, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines