1 Reply Latest reply on Dec 19, 2018 2:26 PM by bbb_999

    How does PProPanel know the name of current active sequence?

    超宋81523081

      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.

        • 1. Re: How does PProPanel know the name of current active sequence?
          bbb_999 Adobe Employee
          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;

          }