Skip to main content
Inspiring
February 9, 2022
Answered

convert rootitem into sequence[index] script premiere

  • February 9, 2022
  • 2 replies
  • 554 views
how to convert  from  app.project.rootItem.children[index] to this 
 app.project.sequences[index]
 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.
This topic has been closed for replies.
Correct answer Bruce Bullis

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.

2 replies

Inspiring
February 12, 2022

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.

Bruce Bullis
Bruce BullisCorrect answer
Legend
February 9, 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.

Participant
May 22, 2024

When using remix, the sequence loses access to projectItem, and treePath cannot be used anymore to search through all sequences and find a projectItem in a specific folder when iterating through all sequences.

 

Is there any other way to match a projectItem to a Sequence other than by treePath?

Bruce Bullis
Legend
May 22, 2024

>Is there any other way to match a projectItem to a Sequence other than by treePath?

No; tree path, and name, are the right identifiers.