Skip to main content
Participant
December 18, 2023
Answered

How to return values from jsx event to js?

  • December 18, 2023
  • 1 reply
  • 403 views

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

This topic has been closed for replies.
Correct answer Bruce Bullis

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".

 

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
December 18, 2023

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".

 

Participant
December 19, 2023

Thank you Bruce! That worked like a charm. I finally made it work thanks to you. Cheers!