Synchronize clips using ExtendScript
Hello,
when selecting multiple clips in the sequence timeline, the context menu offers the option "Synchronize" where synchronization using the audio is possible. How can I utilize this feature using ExtendScript?
Some snippets I gathered so far, not sure whether they are beneficial:
- Setting selection:
var clips = [];
var firstClipInTrack = 0;
for(var i=0; i < qe.project.getActiveSequence().numVideoTracks; i++){
clips.push(app.project.activeSequence.videoTracks[i].clips[firstClipInTrack]);
clips.push(app.project.activeSequence.audioTracks[i].clips[firstClipInTrack]);
}
app.project.activeSequence.setSelection(clips);But I don't see a synchronization method to which I could pass the selection.
- Undocumented QE method which may have something to do with synchronization:
qe.project.getActiveSequence().syncLockTracks(/*parameters?!*/);But I do not know whether that is correct and if so, what the expected method signature for calling is.
If there is a way without using qe DOM, even better!
Best, Steve
