Skip to main content
Participant
December 19, 2023
Answered

How to Set Sequence Active and visible in timeline canvas

  • December 19, 2023
  • 1 reply
  • 861 views

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 has been closed for replies.
Correct answer Nayani34184113nudi

this code worked.

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

 

1 reply

Bruce Bullis
Community Manager
Community Manager
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? 


Nayani34184113nudiAuthorCorrect answer
Participant
December 20, 2023

this code worked.

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

 

Bruce Bullis
Community Manager
Community Manager
December 20, 2023

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