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.


How to find a trackitem with QE scripting

Participant ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

I need to find a track item through the QE functions. I saw that getItemAt (number) exists but I didn't understand exactly what number to pass to the function.

var num = (mainSeq.videoTracks.numTracks)-1;
var insertedSub = main.getVideoTrackAt(num).getItemAt(???????);

 

Or is there another particular way to find a track item or an array of track items in QE?

With the basic functions I would use:

var insertedSub = mainSeq.videoTracks[0].clips;

but I need to work with QE for this operation.
Thanks  a lot.

TOPICS
How to, SDK

Views

76

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 , Oct 17, 2021 Oct 17, 2021
> I need to find a track item through the QE functions. As previously stated, the QE DOM is officially unsupported, and not recommended.

Likes

Translate

Translate
Adobe Employee ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

> I need to find a track item through the QE functions.

 

As previously stated, the QE DOM is officially unsupported, and not recommended.

 

 

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
Explorer ,
Nov 02, 2021 Nov 02, 2021

Copy link to clipboard

Copied

Using QE DOM you must know that clips and gaps in tracks are the same. For example, if your sequence contents only one trackitem at TC (00:00:01:00 - 00:00:04:00), its index is 1, and index 0 has gap at TC (00:00:00:00 - 00:00:01:00). You must create the function for translating clip indexes into QE DOM clip indexes. It's not difficult. 

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
Participant ,
Nov 02, 2021 Nov 02, 2021

Copy link to clipboard

Copied

LATEST

Thank you!

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