Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Is there a way to get selected track items all at once in Premiere Pro API?

Community Beginner ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

Hello,
I'm having trouble developing a script in Premiere Pro. I'm asking because I couldn't find a solution by searching.

 

Is there a way to get all selected track items in a Premiere Pro sequence at once?

For example, is it possible to get selected track items at a similar speed to selectedLayers in Adobe After Effects?

 

There are workarounds like trackItem's isSelected() method, but it's too slow to use in real-time as accessing one selected clip requires evaluating true/false for the entire track's track items.

From what I've searched, there doesn't seem to be a way around this in the current script.

 

If it can't be solved at the script level, is there a way to solve it in the Premiere Pro Plugin SDK (C++)?

 

Requires the same properties or methods as selectedLayers in Adobe After Effects. Is there a quick way to get the index of the track and the index of the selected track item?

Developers, I would appreciate it if you could tell me that this is impossible if it is in an impossible form.

 

If you want to solve this problem, but it is not possible, you want to limit functionality or stop developing the tool.

 

Please help me~

TOPICS
SDK

Views

45

Likes

Translate

Translate

Report

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 , Jul 01, 2021 Jul 01, 2021
The isSelected() method isn't a work-around; it's provided for exactly this purpose.  I'm not sure how one would evaluate all trackItems, without evaluating each trackItem...? There is no C++ API around track item selection.

Likes

Translate

Translate
Adobe Employee ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

LATEST

The isSelected() method isn't a work-around; it's provided for exactly this purpose. 

I'm not sure how one would evaluate all trackItems, without evaluating each trackItem...?

There is no C++ API around track item selection.

 

 

Likes

Translate

Translate

Report

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