Any plans to bring events to ProjectItemSelection any time soon?

Specifically, allowing the plugin to be notified when the project item selection changes.
As of now I guess I could do pooling but not very efficient.

Plans, yes, but not part of 1.0.

Oh, wait, wait, wait…

Didn’t I just saw PROJECT_ITEM_SELECTION_CHANGED in the docs ?
(I don’t remember seeing that before; it may have been added very recently)

Coupled with EventManager::addGlobalEventListener, it should do the trick :slight_smile:
(in which case it may be part of 1.0 after all)

OK seems to work.

A run into a weird issue but seem to have resolve inexplicably

1 * Premiere was consistently crashing by expanding the selection from 1 to more item (ie: keep the previously selected item in the new selection by pressing Shift + click).
Then suddendly stopped crashing and behave as expected (without installing a new version).
( I am currently using windows 11 & latest Premier Beta and latest UDT).

2 * I received 2~3 notifications in a row (seem inconsistent, or may inconsistency was also tied to the crash I saw before)

Still, I can use that to receive a notification and manually trigger the desired action :slight_smile:

Testing code used:

const ppro = require("premierepro");

// [... snip ...]

const evtMgr = await ppro.EventManager.addGlobalEventListener(ppro.Constants.ProjectEvent.PROJECT_ITEM_SELECTION_CHANGED, async (evt) => {
  for(let proj of evt.projectItems) {
    log(await proj.name)
  }
})
log(evtMgr)  // (useless variable, the function does not return anything)