Copy link to clipboard
Copied
Hi , I'm using Preimeire's QE API to cut tracks like this:
qe.project.getActiveSequence().getVideoTrackAt(0).razor(mytimecode);
qe.project.getActiveSequence().getAudioTrackAt(0).razor(mytimecode);
However, this unlinks the audio and video tracks. Is there method to re-link the tracks? I know you can do it in the normal API, but there is no method in QE to setSelection first
Thanks
The QE DOM remains unsupported, and not recommended.
Thanks, this code will do the job, if anyone is also wondering
var sequence = app.project.activeSequence;
var videoTrack = sequence.videoTracks[0];
var audioTrack = sequence.audioTracks[0];
var numVidClips = videoTrack.clips.numItems;
for (var g = 0; g < numVidClips; g++) {
videoTrack.clips[g].setSelected(true, true);
audioTrack.clips[g].setSelected(true, true);
sequence.linkSelection();
videoTrack.clips[g].setSelected(false, true);
audioTrack.clips[g].setSelected(false, true);
}
h
Copy link to clipboard
Copied
The QE DOM remains unsupported, and not recommended.
Copy link to clipboard
Copied
Can anyone reccommend a place to discuss the QE API out side of Adobe forums?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks, this code will do the job, if anyone is also wondering
var sequence = app.project.activeSequence;
var videoTrack = sequence.videoTracks[0];
var audioTrack = sequence.audioTracks[0];
var numVidClips = videoTrack.clips.numItems;
for (var g = 0; g < numVidClips; g++) {
videoTrack.clips[g].setSelected(true, true);
audioTrack.clips[g].setSelected(true, true);
sequence.linkSelection();
videoTrack.clips[g].setSelected(false, true);
audioTrack.clips[g].setSelected(false, true);
}
h