Skip to main content
Inspiring
July 11, 2019
Answered

Premiere: Listen to "Active Project Changed" event

  • July 11, 2019
  • 1 reply
  • 863 views

Hi,

I'm glad it's now possible to subscribe to "Active Sequence Changed" event in Premiere scripting.

This wasn't possible some years ago, so thanks for this.

I found no way to react in a similar way to "Active Project Changed" event. Did I miss something?

The goal is to update project-related information in the panel as soon as the user changes the active project.

At least a way to react to "user opens a project" would be great.

This topic has been closed for replies.
Correct answer wiejetz

For folks who want to do similar stuff:

I noticed that onSourceClipSelectedInProjectPanel will trigger if the user opens / activates a different project. Check PPPanel and search for this function to see how it's triggered.

1 reply

Bruce Bullis
Community Manager
Community Manager
July 11, 2019

There's no 'active project changed' or 'user just opened a project' message available.

You can detect the active project, though.

Here, PProPanel loops through open projects, and closes any that aren't the active project:

https://github.com/Adobe-CEP/Samples/blob/2fa70438c44f20884751974c8fd570778b9d00f7/PProPanel/jsx/PPRO/Premiere.jsx#L2013

wiejetzAuthor
Inspiring
July 12, 2019

Hi, thanks for the information.

I have to rely on "Project Change" event in order to update panel information. It should be okay from user perspective because this event fires quite often (but not if user opens a different project)