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

Create sequence inside a bin

Explorer ,
Sep 04, 2015 Sep 04, 2015

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

TOPICS
SDK
2.4K
Translate
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 , Sep 18, 2015 Sep 18, 2015

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);

Translate
Explorer ,
Sep 17, 2015 Sep 17, 2015

I'm looking for this same functionality.  Any responses or clues?

thanks,

Kelly

Translate
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 ,
Sep 18, 2015 Sep 18, 2015

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?

Translate
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 ,
Sep 18, 2015 Sep 18, 2015

Hi,

Thank you for your response. How can we change the parent for a sequence ProjectItem object?

Thanks and Regards,

Anoop NR

Translate
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 ,
Sep 18, 2015 Sep 18, 2015

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);

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

Bizarre.

Was 'seq' valid, before you called moveBin()?

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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);

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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.

Screen Shot 2015-09-21 at 11.58.16 AM.png

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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);

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

Try a current version of PPro; bet you a nickel it works.

Translate
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 ,
Sep 21, 2015 Sep 21, 2015

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

Translate
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 ,
Sep 21, 2015 Sep 21, 2015
LATEST

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.

Translate
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