• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

QE Razor, link clips?

Explorer ,
Sep 08, 2024 Sep 08, 2024

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

TOPICS
SDK

Views

163

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Sep 08, 2024 Sep 08, 2024

The QE DOM remains unsupported, and not recommended.

Votes

Translate

Translate
Explorer , Sep 09, 2024 Sep 09, 2024

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);
}

Votes

Translate

Translate
Adobe Employee ,
Sep 08, 2024 Sep 08, 2024

Copy link to clipboard

Copied

The QE DOM remains unsupported, and not recommended.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 08, 2024 Sep 08, 2024

Copy link to clipboard

Copied

Can anyone reccommend a place to discuss the QE API out side of Adobe forums?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

LATEST

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);
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines