5 Replies Latest reply on Apr 11, 2017 12:55 PM by Bruce Bullis

    Event for changed ActiveSequence

    e.d. Level 3

      Hi,

       

      is there an event allowing us to create a listener for a change of the active sequence, i.e. if a different (already open) sequence is being activated, or another sequence is opened from the project window? I don't really want to use an interval timer for polling..

       

      Cheers,

      Erik

        • 1. Re: Event for changed ActiveSequence
          Bruce Bullis Adobe Employee

          There is no such message.

           

          Instead of polling, why not just check the active sequence, before doing anything?

          • 2. Re: Event for changed ActiveSequence
            e.d. Level 3

            Bruce,

             

            the intention is to populate a read-only textfield with the sequence name for the purpose of cross-checking, before the user hits the export button next to said text field, which will trigger a custom export process. I want to circumvent having an "update" button, or use panel focus/click events, that's always one click more than necessary. The ideal solution would be to have non-blocking events, alternatively I prbably would have to use an interval-based poll, but only when the panel is visible to the user. I think there is a switch for this...correct? To check if a panel is active (not focused, but visible in the GUI)?

             

            Erik

            • 3. Re: Event for changed ActiveSequence
              Bruce Bullis Adobe Employee

              Yes, you can tell if an extension is open or not; see CEP HTML Test Extension.

               

              Perhaps your panel could enable/disable the export button, after confirming whether the current active sequence is the same as the previously noticed active sequence?

              • 4. Re: Event for changed ActiveSequence
                e.d. Level 3

                Okay, so there is (currently) no way to "know" programmatically if the

                panel is visible, just open or closed.

                I was also thinking about pausing the interval timer whenever PPro is

                "idle", i.e. not playing back, mouse button is pressed etc., basically

                excluding "global" states that might be disturbed by a timed blocking

                method. Do you reckon this is feasible, because the "exclusion list" might

                be quite vast?

                 

                Erik

                • 5. Re: Event for changed ActiveSequence
                  Bruce Bullis Adobe Employee

                  We don't recommend interval timers, at all.

                   

                  I'd recommend checking the active sequence immediately after the user clicks that button, and fail out if the current sequence is incorrect.