Skip to main content
Kelly Anderson
Inspiring
December 10, 2015
Answered

set a sequence to active

  • December 10, 2015
  • 1 reply
  • 1588 views

Hello,

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

thanks,

Kelly

This topic has been closed for replies.
Correct answer Bruce Bullis

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.

}

1 reply

Bruce Bullis
Community Manager
Community Manager
December 15, 2015

Sorry, didn't see this one—Yes!

app.project.activeSequence =  someSequence;

Kelly Anderson
Inspiring
December 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;

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

}