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

How to return values from jsx event to js?

Community Beginner ,
Dec 18, 2023 Dec 18, 2023

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

TOPICS
SDK

Views

255

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 18, 2023 Dec 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 P

...

Votes

Translate

Translate
Adobe Employee ,
Dec 18, 2023 Dec 18, 2023

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

 

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
Community Beginner ,
Dec 19, 2023 Dec 19, 2023

Copy link to clipboard

Copied

LATEST

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

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