My work is almost done, but there is one simple question, how to delete the sequence using ExtendScript?
In my script I can clone it, rename, move new footages, pictures, wav's etc., but I can not delete it.
In Data Browser (ExtendScript) there's app.project.deleteSequence(), but what are the arguments for this function? I know about QE and I found just one thread about it (https://forums.adobe.com/thread/1977423?start=0&tstart=0), there's no answer how it works. For many years I'm waiting for the manual for Pr like an After Effects Scripting Guide=(
In my project there is a sequence I need to make a copy, create some footages and titles, then rename cloned sequence, export it as Premiere Pro project and delete from this one. Everything works perfect except the last one.
This is the part of code:
app.project.activeSequence.clone(); // create "old_seq copy" from "old_seq" var nI = app.project.rootItem.children.numItems; for (var i = 0; i < nI; i++) { if (app.project.rootItem.children[i].name == "old_seq copy") { var item = app.project.rootItem.children[i] item.name = "new_seq"; } } -------------------------------------------------------------- /*--*/ for (var i = 0; i < nI; i++) { if (app.project.rootItem.children[i].name == "new_seq") { app.project.deleteSequence(); //<--- this is just an example of the line, but how to delete "new_seq"? } }
I found nothing about it in PProPanel. Is it possible at all?
Thank you!