Can't find targeted track in the dom


hello friendly premiere people,

 

i'm trying use premiere extendscript api determine if track in active sequence targeted—i've tried both qe dom , vanilla dom. here's code using 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 case, curtrack contains methods "islocked()", "ismuted()", , "issynclocked()", not "istargeted()." had through activesequence object in case track targeting info stored there, didn't see it. here's code using 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 case, curtrack has "ismuted()" method (so no "istargeted()" method).

 

is there way query if track targeted through available api? i'm getting information in spot exporting fcpxml & reading in—but i've run case super helpful if ask premiere directly it.

 

thanks!

raphael



More discussions in Premiere Pro SDK


adobe

Comments

Popular posts from this blog

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop

Illustrator CS6 Ocurrío un error E/S en el archivo.