Copy link to clipboard
Copied
Hello,
Is there a way to make a specific sequence the active one?
thanks,
Kelly
1 Correct answer
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.
}
Copy link to clipboard
Copied
Sorry, didn't see this one—Yes!
app.project.activeSequence = someSequence;
Copy link to clipboard
Copied
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;
Copy link to clipboard
Copied
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.
}
Copy link to clipboard
Copied
I'm guessing this only works if the sequence is open in the canvas area, not just in the projects browser??
Copy link to clipboard
Copied
My testing indicates 'yes'. Feature requested.
Copy link to clipboard
Copied
is there a way to open the sequence in the canvas area via code?

