Can't find targeted track in the dom
Hello friendly Premiere people,
I'm trying to use the Premiere extendscript api to determine if a track in the active sequence is targeted—I've tried with both the qe dom and the vanilla dom. Here's my code using the qe dom:
app.enableQE();
var project = qe.project;
project.init();
var activeSequence = project.getActiveSequence();
var vidTrackCount = activeSequence.numVideoTracks;
for (var currentVidTrack = 0; currentVidTrack < vidTrackCount; currentVidTrack++) {
var curTrack = activeSequence.getVideoTrackAt(currentVidTrack);
}
In this case, curTrack contains methods like "isLocked()", "isMuted()", and "isSyncLocked()", but not "isTargeted()." I had a look through the activeSequence object in case track targeting info was stored there, but I didn't see it. Here's my code using the vanilla dom:
var activeSequence = app.project.activeSequence
var vidTracks = activeSequence.videoTracks
var vidTrackCount = activeSequence.videoTracks.numTracks;
for (var currentVidTrack = 0; currentVidTrack < vidTrackCount; currentVidTrack++) {
var curTrack = activeSequence.videoTracks[currentVidTrack]
}
In this case, curTrack has a "isMuted()" method only (so also no "isTargeted()" method).
Is there a way to query if a track is targeted through any available api? I'm getting that information in another spot by exporting a fcpxml & reading it back in—but I've run into a case where it would be super helpful if I could just ask Premiere directly for it.
Thanks!
Raphael