Copy link to clipboard
Copied
Hi All,
We can create a new sequence in the Project root in Premiere using
app.project.createNewSequence(sequenceName, "123"); command;
Is there any way to create the sequence inside a bin in the project?
Similar way we can import an asset inside a bin by selecting the bin and import the asset using app.project.importFiles(assetArray);
Thanks and Regards,
Anoop NR
Create a new project, and make a new sequence. Run [below] from ESTK.
var seq = app.project.rootItem.children[0];
var target = app.project.rootItem.createBin("foo");
seq.moveBin(target);
Copy link to clipboard
Copied
I'm looking for this same functionality. Any responses or clues?
thanks,
Kelly
Copy link to clipboard
Copied
It doesn't look like targeting a bin before sequence creation works; how about getting the sequence's projectItem (which, after creation, should be the highest numbered available projectItem), and changing its parent?
Copy link to clipboard
Copied
Hi,
Thank you for your response. How can we change the parent for a sequence ProjectItem object?
Thanks and Regards,
Anoop NR
Copy link to clipboard
Copied
Create a new project, and make a new sequence. Run [below] from ESTK.
var seq = app.project.rootItem.children[0];
var target = app.project.rootItem.createBin("foo");
seq.moveBin(target);
Copy link to clipboard
Copied
Hi bbb,
I created a new project with a new sequence then ran the script.
A new bin was created but the sequence was not moved to the bin.
Here's my script:
var seq = app.project.rootItem.children[0];
alert(seq. name); //Make sure we have captured the correct project item
var target = app.project.rootItem.createBin("foo");
seq.moveBin(target);
Any other ideas?
thanks,
Kelly
Copy link to clipboard
Copied
Bizarre.
Was 'seq' valid, before you called moveBin()?
Copy link to clipboard
Copied
Well, I think so. My alert window popped up with the correct sequence name so I'm assuming that's working.
I'll try it again and do some program restarts.
thanks,
Kelly
Copy link to clipboard
Copied
Nope, restart of both programs didn't help.
Just for the record, I'm using Premiere Pro CC 2014 and ExtendScript 4.0.0.1.
Any other ideas?
thanks,
Kelly
Copy link to clipboard
Copied
Confirming: If you run the exact script below in PPro 8.2x65 (the last shipping version of CC 2014), in a saved project containing only one sequence, that sequence does NOT move to the bin 'foo'?
// -- run below from ESTK
var seq = app.project.rootItem.children[0];
var target = app.project.rootItem.createBin("foo");
seq.moveBin(target);
Copy link to clipboard
Copied
That is correct. Running the script from ESTK creates a new bin but the sequence doesn't move.
Here's the splash screen of PPro that I'm using. It looks like 8.2x65.
Copy link to clipboard
Copied
FYI
I just tried the moveBin command on a bin and it worked. Just can't get it to move a sequence.
????????
// -- run below from ESTK
var target = app.project.rootItem.createBin("foo");
var anotherBin = app.project.rootItem.createBin("anotherBin");
anotherBin.moveBin(target);
Copy link to clipboard
Copied
Try a current version of PPro; bet you a nickel it works.
Copy link to clipboard
Copied
Okay, I owe you a nickel (however, I don't think I'd really bet you, because you do know more than me).
Just tested it in PPro CC 2015 and it works.
Are there going to be more things that "work" for me in PPro CC 2015?
thanks for the help,
Kelly
Copy link to clipboard
Copied
You wouldn't want me to spoil the surprise...
We've fixed several bugs in Adobe's shared panel (CEP) infrastructure, but (off the top of my head) I don't recall changing any other behaviors of existing PPro ExtendScript APIs.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now