Skip to main content
Participant
June 17, 2024
Answered

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

  • June 17, 2024
  • 1 reply
  • 457 views
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.
 
This topic has been closed for replies.
Correct answer Bruce Bullis

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.

 

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
June 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.