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

convert rootitem into sequence[index] script premiere

Explorer ,
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

177

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.

Votes

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.

Votes

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
New Here ,
May 22, 2024 May 22, 2024

Copy link to clipboard

Copied

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?

Votes

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
Adobe Employee ,
May 22, 2024 May 22, 2024

Copy link to clipboard

Copied

>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.

Votes

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
New Here ,
May 22, 2024 May 22, 2024

Copy link to clipboard

Copied

LATEST

Thank you.

Votes

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

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.

Votes

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