Skip to main content
Inspiring
February 3, 2020
Answered

An event for timeline selection change in CEP?

  • February 3, 2020
  • 1 reply
  • 1051 views

How can I detect if the the selection has changed in the timeline, and also if the active timeline has changed, from a CEP panel?

This topic has been closed for replies.
Correct answer mortoray

The event for sequence selection changes is `onSequenceSelectionChanged`

 

This is fired for any change in the selection on the active sequence. It also appears to fire when the activeSequence changes.

1 reply

Bruce Bullis
Community Manager
Community Manager
February 3, 2020

At the ExtendScript (not the JavaScript/CEP level), the PProPanel example shows how to detect and set selections within a sequence: 

 

https://github.com/Adobe-CEP/Samples/blob/5adff5bfad64ed20ae68770ab0e2401790d47e7e/PProPanel/jsx/PPRO/Premiere.jsx#L1256

...as well as when the seuqence itself changes:

 

https://github.com/Adobe-CEP/Samples/blob/5adff5bfad64ed20ae68770ab0e2401790d47e7e/PProPanel/jsx/PPRO/Premiere.jsx#L1999

mortorayAuthor
Inspiring
February 3, 2020

The event "onActiveSequenceChanged" is not fired when the selection changes.

 

It does fire if I modify the sequence, like move a clip, but that's not what I want. I want to know when the selection changes.