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

set a sequence to active

Explorer ,
Dec 10, 2015 Dec 10, 2015

Hello,

Is there a way to make a specific sequence the active one?

thanks,

Kelly

TOPICS
SDK
1.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 , Dec 16, 2015 Dec 16, 2015

You're trying to set the current sequence, to be a projectItem.

Make a new project; create two sequences. Make the second one you've created active, then try this.

var activeSeq = app.project.activeSequence;

if (activeSeq){

   

        var otherSeq = app.project.sequences[0];

        app.project.activeSequence = otherSeq;

        // Note: changes not reflected in PPro UI or API, until ExtendScript returns to PPro.

}

Translate
Adobe Employee ,
Dec 15, 2015 Dec 15, 2015

Sorry, didn't see this one—Yes!

app.project.activeSequence =  someSequence;

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 ,
Dec 16, 2015 Dec 16, 2015

This isn't working for me. 

Here's what I'm trying to do...

any ideas?  Thanks.

//project item 5 is a sequence

var sequenceObject = root.children[5];

alert(sequenceObject.name);

app.project.activeSequence = sequenceObject;

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 ,
Dec 16, 2015 Dec 16, 2015

You're trying to set the current sequence, to be a projectItem.

Make a new project; create two sequences. Make the second one you've created active, then try this.

var activeSeq = app.project.activeSequence;

if (activeSeq){

   

        var otherSeq = app.project.sequences[0];

        app.project.activeSequence = otherSeq;

        // Note: changes not reflected in PPro UI or API, until ExtendScript returns to PPro.

}

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 ,
Dec 17, 2015 Dec 17, 2015

I'm guessing this only works if the sequence is open in the canvas area, not just in the projects browser??

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 ,
Dec 17, 2015 Dec 17, 2015

My testing indicates 'yes'. Feature requested.

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
Participant ,
Feb 13, 2024 Feb 13, 2024
LATEST

is there a way to open the sequence in the canvas area via code?

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