Copy link to clipboard
Copied
The first screenshot shows PProPanel knows current Active Sequence is "My First Sequence".
The Second scrrenshot is from index.html included in PProPanel extension sample folder.
I'm trying to figure out how Premiere pro send message to extension window. Thanks for the help.
I'm trying to figure out how Premiere pro send message to extension window.
It doesn't send a message; the panel has to ask.
See /PProPanel/ext.js, line 46:
csInterface.evalScript('$._PPP_.getActiveSequenceName()', myCallBackFunction);
That invokes the getActiveSequenceName() function (in /PProPanel/jsx/PPRO/Premiere.jsx), and passes the result to 'myCallBackFunction', in ext.js.
myCallBackFunction then updates the web page:
function myCallBackFunction (data) {
// Updates seq_display with whatever
Copy link to clipboard
Copied
I'm trying to figure out how Premiere pro send message to extension window.
It doesn't send a message; the panel has to ask.
See /PProPanel/ext.js, line 46:
csInterface.evalScript('$._PPP_.getActiveSequenceName()', myCallBackFunction);
That invokes the getActiveSequenceName() function (in /PProPanel/jsx/PPRO/Premiere.jsx), and passes the result to 'myCallBackFunction', in ext.js.
myCallBackFunction then updates the web page:
function myCallBackFunction (data) {
// Updates seq_display with whatever ExtendScript function returns.
var boilerPlate = "Active Sequence: ";
var seq_display = document.getElementById("active_seq");
seq_display.innerHTML = boilerPlate + data;
}