Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

No joy from openSequence in Premiere jsx.

$
0
0

Hi, I've been playing around with the Premiere ExtendScript interface with varying degrees of success, with a view to having a panel (or something) act as a quick launcher for all sequences in a project.

 

var allSequences = app.project.sequences;

for (var index = 0; index < allSequences.numSequences; index++) {    var currentSequence = allSequences[index];    $.writeln(currentSequence.id);    // writes a whole bunch of integers (e.g. 12, 19, 28, 20, 7, 16 etc)
}

$.writeln(app.project.openSequence("12"));
// returns false, fails every time

 

The code above successfully returns all the IDs of the sequences in the active project, so I know I'm using an ID that relates to an actual sequence.

 

However, the "openSequence" method of the Project class doesn't seem to be doing … anything. Looking at the Premiere scripting documentation for the Project class indicates that it's expecting the ID of a sequence as a string, but – like the subject line sez – it's just not happening for me.

 

Have any of you clever people succeeded in getting this function to work?

 

Thanks! Ian


Viewing all articles
Browse latest Browse all 53010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>