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

ExtendScript Debugger - Import JSX Library files

Explorer ,
Aug 19, 2020 Aug 19, 2020

Hi, 

 

I'm using the Extendscript debugger to run some one-off scripts in Premiere Pro. I don't want to create a panel for each one. 

 

I've got a few library .jsx files that I want to run before the main .jsx file (and also enter into the debugger). I've tried to import the jsx using an import statement, but the Debugger doesn't appear to do anythign with these statements.

```

//#import "util.jsx

```

In a panel, the .jsx files loaded are controlled by the javascript entry point, so I can just load the `util.jsx` file. Without a panel, how do I load an external .jsx file in Extendscript itself for use with the VSCode ExtendScript Debugger? 

TOPICS
SDK
1.3K
Translate
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

Advocate , Aug 20, 2020 Aug 20, 2020
Translate
Adobe Employee ,
Aug 20, 2020 Aug 20, 2020
Try:

//@include filename.jsx
 
 
Translate
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
Advocate ,
Aug 20, 2020 Aug 20, 2020
Translate
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
Explorer ,
Aug 20, 2020 Aug 20, 2020
LATEST

Excellent Tomas. That works perfectly. For some reason I had the wrong pre-processor directive, but `//@include "json.jsx" works in the VSCode Extendscript debugger for non-panel files. 

 

 

Translate
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