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

Extendscript - Duplicate nested sequence on active timeline. (i.e control click drag functionality)

New Here ,
Jun 17, 2024 Jun 17, 2024

Copy link to clipboard

Copied

I have a question about a functionality in qe or the Extendscript api. My aim is to duplicate a sequence in a track, but I have not been able to do so thus far. I have tried using the insertClip method, but it seems I can only insert a projectItem object that is a video, not a sequence. I have also attempted to utilise the qe VideoTrack.Insert() method, but this seems to return the same result, throwing an error when I pass in a ProjectItem that is a sequence. Is there a workaround for this? Here is a snippet of my current code.
 
TOPICS
SDK

Views

164

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 , Jun 17, 2024 Jun 17, 2024

I'm away from my computer, but when you call insertClip(), I think you want to pass selectedItems[i] as a param, instead of projectItems[i]...? 

sequence.clone() is the right approach, to duplicating (not inserting) a sequence. You'll find the newly-created sequence at the end of the app.project.sequences[] array.

 

Votes

Translate

Translate
Adobe Employee ,
Jun 17, 2024 Jun 17, 2024

Copy link to clipboard

Copied

LATEST

I'm away from my computer, but when you call insertClip(), I think you want to pass selectedItems[i] as a param, instead of projectItems[i]...? 

sequence.clone() is the right approach, to duplicating (not inserting) a sequence. You'll find the newly-created sequence at the end of the app.project.sequences[] array.

 

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