Skip to main content
Premiopolis
Inspiring
May 2, 2017
Answered

Is it possible to detect which items are selected in the project panel?

  • May 2, 2017
  • 1 reply
  • 1148 views

Is it possible to detect which items are selected in the project panel?

Looking the equivalent of TimelineClip.isSelected() command but for items in the project panel.

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

Panels can currently get notified whenever the project selection changes, but (as you've found) there is no current way to get or set the selection. I can make no specific commitments, but this is a highly requested feature near the top of our API backlog.

1 reply

andymees@aje
Legend
May 2, 2017

Nope, no way to do that as yet.

Aecorn
Inspiring
January 25, 2018

Looking for this as well.


Using

var projectItem = app.project.rootItem.children[0];

for testing, but I want to retrieve the currently selected projectItem.

var projectItem = app.project.rootItem.children.isSelected(); //or similar

Does not work, but would be nice if it did.

Would be nice with both a single item return, and a Collection, if several are selected, we should write our own exceptions.

Bruce Bullis

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
January 25, 2018

Panels can currently get notified whenever the project selection changes, but (as you've found) there is no current way to get or set the selection. I can make no specific commitments, but this is a highly requested feature near the top of our API backlog.