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

Creating a new window using Adobe Extendscript in Premiere

Community Beginner ,
Jan 10, 2023 Jan 10, 2023

Extendscript in premire REALLY feels like the wild west to me when it comes to getting coherant information on the internet, so I'm trying to start this off really basic. I have VS code installed and I've added the extendscript toolkit to it. All I'm trying to do is make a simple window pop up when the script is run. This is what I have typed:

 

var win = new Window("palette", "My Panel", undefined);
var button = win.add("button", undefined, "Click me!");
button.onClick = function() {
alert("Button clicked!");
}
win.show();
 
I've tried a couple of different variations of this, but I always end up with the same error:
 
Eval Error (#22): "Window does not have a constructor" in '/****/****/***/****' [1:1] in host 'premierepro-23.0 (NewWorld)'.
 
(Note that I censored the file name in the error report.)
 
Can anyone explain to me what I'm doing wrong?
TOPICS
SDK , User interface or workspaces
1.0K
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 , Jan 10, 2023 Jan 10, 2023

PPro ExtendScript support does not include ScriptUI, which is what you're using. 

alerts and file/folder pickers work fine though.

 

perhaps you could use CEP JavaScript, to handle UI?

Translate
LEGEND ,
Jan 10, 2023 Jan 10, 2023

@Bruce Bullis to the rescue ... again, please?

 

Neil

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 ,
Jan 10, 2023 Jan 10, 2023

PPro ExtendScript support does not include ScriptUI, which is what you're using. 

alerts and file/folder pickers work fine though.

 

perhaps you could use CEP JavaScript, to handle UI?

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 Beginner ,
Jan 10, 2023 Jan 10, 2023
LATEST

Ok, I understand. I will look into CEP Javascript. Thanks for the help!

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