convert rootitem into sequence[index] script premiere

Community Beginner ,
Feb 09, 2022 Feb 09, 2022

Copy link to clipboard

Copied

how to convert  from  app.project.rootItem.children[index] to this 
 app.project.sequences[index]
Capture_undefiened.PNG
 app.project.sequences[index].videoTracks.numTracks   
or 
id or projectitem are not working.
i cannot access these properties that sequence[index] can be accessed please do help.
TOPICS
SDK

Views

37

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 , Feb 09, 2022 Feb 09, 2022
All sequences are projectItems; not all projectItems are sequences.  You can use the projectItem.isSequence() method to identify sequences; you can also iterate across app.project.sequences, to access all sequences in a project.

Likes

Translate

Translate
Adobe Employee ,
Feb 09, 2022 Feb 09, 2022

Copy link to clipboard

Copied

All sequences are projectItems; not all projectItems are sequences. 

 

You can use the projectItem.isSequence() method to identify sequences; you can also iterate across app.project.sequences, to access all sequences in a project.

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 ,
Feb 12, 2022 Feb 12, 2022

Copy link to clipboard

Copied

LATEST

In addition of Bruce's receipt. If you have a sequence as the definite ProjectItem or TrackItem object you have to compare "nodeId" in all of sequence[i].projectItem objects and your projectItem (or TrackItem.projectItem) objects in cycle.

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