Skip to main content
Participant
December 19, 2023
Answered

How to Set Sequence Active and visible in timeline canvas

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 topic is closed to new replies. Start a new post to keep the conversation going.
Nayani34184113nudiCorrect answer
Participant
December 20, 2023

this code worked.

var sequenceID = app.project.sequences[0].sequenceID;
app.project.openSequence(sequenceID);

 

3 replies

Bruce Bullis
Legend
December 19, 2023

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? 


Translate
Nayani34184113nudiAuthorCorrect answer
Participant
December 20, 2023

this code worked.

var sequenceID = app.project.sequences[0].sequenceID;
app.project.openSequence(sequenceID);

 

Translate
Bruce Bullis
Legend
December 20, 2023

Nice! [Also, embarrassing that I'd forgotten about openSequence()...]

Translate