Copy link to clipboard
Copied
Hi,
How can we listen for the sequence change and pass the active sequence name in our CEP Panel without polling? The event 'onSequenceActivated' can only interact with the elements in the jsx script. I want to make it so it will return the sequence name once the event is triggered and pass it to my javascript so that my CEP Panel will automatically change 'tabs' depends on the sequence name.
I tried binding the event in the app (just like in PProPanel) and return the sequence name instead of updating the event panel. The problem is the evalscript only ran one time so I can't do what I want except if I use polling.
Regards,
Mitch
Oddly, I just answered this same question, elsewhere in the Forums...
To be notified of changes to the active sequence, register for onActiveSequenceStructureChanged messages, not onSequenceActivated.
> The event 'onSequenceActivated' can only interact with the elements in the jsx script
I'm not sure what distinction you're making; ExtendScript interacts with ExtendScript.
If you'd like to send a message from ExtendScript to your panel's JavaScript layer, use CSXS messages, as demostrated in P
...Copy link to clipboard
Copied
Oddly, I just answered this same question, elsewhere in the Forums...
To be notified of changes to the active sequence, register for onActiveSequenceStructureChanged messages, not onSequenceActivated.
> The event 'onSequenceActivated' can only interact with the elements in the jsx script
I'm not sure what distinction you're making; ExtendScript interacts with ExtendScript.
If you'd like to send a message from ExtendScript to your panel's JavaScript layer, use CSXS messages, as demostrated in PProPanel; search for "com.adobe.csxs.events.PProPanelRenderEvent".
Copy link to clipboard
Copied
Thank you Bruce! That worked like a charm. I finally made it work thanks to you. Cheers!