• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

How to Set Sequence Active and visible in timeline canvas

New Here ,
Dec 19, 2023 Dec 19, 2023

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.

 

TOPICS
Editing , SDK

Views

250

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Dec 20, 2023 Dec 20, 2023

this code worked.

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

 

Votes

Translate

Translate
Adobe Employee ,
Dec 19, 2023 Dec 19, 2023

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? 


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 20, 2023 Dec 20, 2023

Copy link to clipboard

Copied

this code worked.

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 20, 2023 Dec 20, 2023

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines