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

SDK Panel only works when ExtendScript Toolkit is open

Community Expert ,
Feb 27, 2017 Feb 27, 2017

Whenever I open Premiere Pro and try to use the SDK Panel I've created, I keep getting the notification: "Run Script Error: undefined is not an object". When I open Extendscript Toolkit, however, it functions fine. Do I have to finalize my project before it can run with just Premiere Pro, or what am I missing here?

Thanks,

Justin

TOPICS
SDK
1.1K
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

Adobe Employee , Feb 28, 2017 Feb 28, 2017

Hi Justin,

You'll note that, at its root, PProPanel has a /PProPanel/PProPanel.jsx; that .jsx file is also referenced in the panel's manifest.

When the panel is loaded, that /PProPanel.jsx goes through every .jsx file in /PProPanel/jsx (in this case, just one such file), and loads it as available ExtendScript. Later, in response to user interaction, the panel calls into those ExtendScript functions, found in the .jsx files in the /jsx directory.

Does your panel use a similar mechanism?

[Feel free t

...
Translate
Adobe Employee ,
Feb 28, 2017 Feb 28, 2017

Hi Justin,

You'll note that, at its root, PProPanel has a /PProPanel/PProPanel.jsx; that .jsx file is also referenced in the panel's manifest.

When the panel is loaded, that /PProPanel.jsx goes through every .jsx file in /PProPanel/jsx (in this case, just one such file), and loads it as available ExtendScript. Later, in response to user interaction, the panel calls into those ExtendScript functions, found in the .jsx files in the /jsx directory.

Does your panel use a similar mechanism?

[Feel free to send me the panel; b b b at adobe dot com]

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
Community Expert ,
Feb 28, 2017 Feb 28, 2017

Bruce,

Thanks for the insight. All the javascript functions are located in the .jsx file that's in the /PProPanel/jsx directory. Not totally sure why Premiere needs ExtendScript to be running in order to execute the functions properly. I'll send you the file I'm working with.

Thanks,

Justin

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
Adobe Employee ,
Feb 28, 2017 Feb 28, 2017

PPro doesn't; it also contains an ExtendScript interpreter.

BUT...

Any/all ExtendScript which is to be available during a given ExtendScript session / PPro session, must be within or enumerated from within the .jsx file specified in the panel's manifest.

So, don't send me just a .jsx file; rather, send me your entire panel.

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
Community Expert ,
Mar 21, 2017 Mar 21, 2017
LATEST

For anyone else experiencing this problem, having built their panel from the sample panel, make sure that any elements you remove from your panel are also removed from the onLoaded() function. My problem was the onLoaded() function was trying to access the dragable control in the sample panel, which I had deleted. I kept getting "Undefined is not an object" errors when I would try to run my panel because the onLoaded() function was breaking before it could load ExtendScript and thus use all the functions I had made. The problem line for me that I had to remove was this:

document.getElementById("dragthing").style.backgroundColor = "lightblue";

Thanks for the help Bruce! And hope this can help someone.

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