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

Get Selected Item(s) in Project Panel

Community Expert ,
Mar 14, 2017 Mar 14, 2017

Going through the examples and documentation, I couldn't find a function or value to tell if a folder or footage item is selected or access that item in the Project Panel of Premiere Pro. Closest thing I found was .select() which only selects the item you have coded. Has anyone had any success with this? Thanks!

TOPICS
SDK
5.3K
Translate
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 , Nov 20, 2017 Nov 20, 2017

While PProPanel now shows how to get a message (and all selected projectItems) every time the project selection changes, getting and setting selection are not yet available.

Translate
Adobe Employee ,
Mar 21, 2017 Mar 21, 2017

There is no API around project selections, in current versions of PPro. It's a highly-requested feature.

Translate
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 Expert ,
Nov 16, 2017 Nov 16, 2017

Any updates on this feature implementation? Thanks!

Translate
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
Adobe Employee ,
Nov 20, 2017 Nov 20, 2017

While PProPanel now shows how to get a message (and all selected projectItems) every time the project selection changes, getting and setting selection are not yet available.

Translate
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 Expert ,
Nov 20, 2017 Nov 20, 2017

Thanks Bruce Bullis​ this definitely helps! Just to confirm, the app.bind("onSourceClipSelectedInProjectPanel", function()) event is only available in PPRO CC 2018 yea?

Translate
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
Adobe Employee ,
Nov 20, 2017 Nov 20, 2017

Correct.

Translate
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 Expert ,
Nov 20, 2017 Nov 20, 2017

And from what I can tell, there's no way to know if nothing is selected in the project panel correct?

I'm basically assigning selected values to a variable to access them whenever I need to, but it seems that the "onSourceClipSelectedInProjectPanel" event doesn't update if everything is deselected. Thanks!

Translate
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 Expert ,
Nov 20, 2017 Nov 20, 2017

Also, I'm only getting up to 2 project item (arguments) at a time from app.bind("onSourceClipSelectedInProjectPanel", function()). Is that a bug, or am I missing something?

Translate
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
Enthusiast ,
Nov 22, 2017 Nov 22, 2017

The TrackItem type has an isSelected field. You could easily search the timeline when you receive your callbacks for all items where that field returns true to build your own selection set...

Translate
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 Expert ,
Nov 22, 2017 Nov 22, 2017

sberic​ I haven't used TrackItems before. Do they correlate to objects selected in the Project Panel or Timeline? I'm trying to get objects selected in the Project Panel.

Translate
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
Adobe Employee ,
Nov 22, 2017 Nov 22, 2017

trackItems = things on a track, in a sequence.

Translate
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 Expert ,
Nov 22, 2017 Nov 22, 2017

That's what I assumed. I'm noticing there's a selected metadata column in the project panel now, but the metadata doesn't seem to update when an item is selected. Is this a way I can access selected items? Bruce Bullis​Screen Shot 2017-11-22 at 9.42.55 AM.png

Translate
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
Adobe Employee ,
Nov 22, 2017 Nov 22, 2017

Not intentionally, no.

We're Working On Itâ„¢.

Translate
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 Expert ,
Nov 22, 2017 Nov 22, 2017

Okay good to know, thanks for the heads up!

Translate
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
Enthusiast ,
Nov 22, 2017 Nov 22, 2017

justin2taylor  wrote

sberic  I haven't used TrackItems before. Do they correlate to objects selected in the Project Panel or Timeline? I'm trying to get objects selected in the Project Panel.

Whoops! Right, my bad. Those are Timeline APIs, not Project library.

justin2taylor  wrote

Also, I'm only getting up to 2 project item (arguments) at a time from app.bind("onSourceClipSelectedInProjectPanel", function()). Is that a bug, or am I missing something?

This sounds like it's either a bug or an implementation detail. Perhaps it's related to "itemDeselected" and "itemSelected" parameters? If you select multiple at once (select one and then hold shift while clicking one several items lower), do you get multiple callbacks?

Bruce Bullis​, I checked the What's New in 12.0? list of changes but did not see this API mentioned. Bug? Missed addition?

Translate
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
Explorer ,
Sep 07, 2022 Sep 07, 2022

Almost 6 years later... Are you still working on it? How to select a project item?

Translate
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
Explorer ,
Oct 20, 2024 Oct 20, 2024
LATEST

In terms of getting items selected in the project window you can use:

 

app.getCurrentProjectViewSelection()

In terms of setting, as far as I can see you can only select one project item at a time via:

projectItem.select()​

 

this selects the projectItem but also deselects any other currently selected items.  The documentation suggests this method is designed for used in conjunction with importing assets into a project.

Translate
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