Copy link to clipboard
Copied
I'm attempting to set an active sequence in Adobe Premiere Pro using ExtendScript without dragging it into the timeline canvas. The issue is that the sequence becomes active only if it is already in the timeline canvas. If it's not there, it doesn't become visible in the timeline.
Here's the logic I've tried:
var activeSeq = app.project.activeSequence;
if (activeSeq){
var otherSeq = app.project.sequences[0];
app.project.activeSequence = otherSeq;
}
This code successfully sets the sequence as active but doesn't make it visible in the timeline if it's not there.
What I'm looking for is a way to make a sequence both active and visible in the timeline even if it's not in the timeline canvas. Thanks in advance.
this code worked.
var sequenceID = app.project.sequences[0].sequenceID;
app.project.openSequence(sequenceID);
Copy link to clipboard
Copied
You're right, that there's no call to open a sequence in the timeline panel.
Perhaps calling the Source monitor's openProjectItem() call on the sequence's projectItem, would also open the sequence in timeline view?
Copy link to clipboard
Copied
this code worked.
var sequenceID = app.project.sequences[0].sequenceID;
app.project.openSequence(sequenceID);
Copy link to clipboard
Copied
Nice! [Also, embarrassing that I'd forgotten about openSequence()...]