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

Script not executing in Premiere Pro 2022

Explorer ,
Dec 29, 2021 Dec 29, 2021

My scripts won't run in Premiere Pro 2022, whereas they used to in 2021. Any suggestions what could be different?

 

The panel as coded in the index.html file loads. The .JS file executes, but the ".evalScript" line doesn't seem to execute:

 

main.js file:

 

function test() {
  var cs = new CSInterface;
  alert('main.js test OK');
  cs.evalScript('$.test.testfunction()');
  alert('mail.js test completed');
}

 

 

test.jsx file:

 

$.test = {
	testfunction: function() {
		alert("jsx test OK");
	},
}

 

 

 

In this example, both alerts from the .jsx fill will appear. It seems to skip, or not execute the "cs.evalScript" line.

 

Any suggestions welcome!

TOPICS
SDK
621
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 , Dec 30, 2021 Dec 30, 2021

I think you mean 'both alerts from the .js file", not .jsx file; let me know if that's not the case.

 

In what PPro version (from the About box, not a year) did the panel previously work? 

 

If you have a panel that behaves correctly in PPro 15.x, but fails in 22.x, send it to me.

Translate
Adobe Employee ,
Dec 30, 2021 Dec 30, 2021
LATEST

I think you mean 'both alerts from the .js file", not .jsx file; let me know if that's not the case.

 

In what PPro version (from the About box, not a year) did the panel previously work? 

 

If you have a panel that behaves correctly in PPro 15.x, but fails in 22.x, send it to me.

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