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

How does PProPanel know the name of current active sequence?

New Here ,
Nov 01, 2018 Nov 01, 2018

Copy link to clipboard

Copied

ppro_screenshot.PNG

The first screenshot shows PProPanel knows current Active Sequence is "My First Sequence".

indexhtml_screenshot.PNG

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.

TOPICS
SDK

Views

397

Translate

Translate

Report

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 19, 2018 Dec 19, 2018
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

...

Votes

Translate

Translate
Adobe Employee ,
Dec 19, 2018 Dec 19, 2018

Copy link to clipboard

Copied

LATEST
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;

}

Votes

Translate

Translate

Report

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