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

Script to fit clips in different tracks.

New Here ,
Aug 30, 2023 Aug 30, 2023

Good afternoon. The bottom line is that you need to automatically adjust the beginning of the second clip in the second track to the beginning of the third from the end of the clip in the first track in the active sequence. And the script is even executed in the environment itself, but stops at the line and does not go any further. Tell me what is the reason? Where is the mistake? Thank you

TOPICS
Error or problem , How to
151
Translate
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
New Here ,
Aug 30, 2023 Aug 30, 2023
LATEST

var project = app.project;
var sequence = project.activeSequence;

var videoTrack_1 = sequence.videoTracks[0]; // первая видеодорожка с основными клипами
var videoTrack_3 = sequence.videoTracks[2]; // третья видеодорожка с сердечками

var numVideoClips_1 = videoTrack_1.clips.numItems; //количество клипов в первой видеодорожке

videoTrack_3.clips[1].start = videoTrack_1.clips[(numVideoClips_1)-3].start;
videoTrack_3.clips[1].end.ticks = videoTrack_1.clips[(numVideoClips_1)-3].end.ticks;
videoTrack_3.clips[0].end.ticks = videoTrack_1.clips[(numVideoClips_1)-5].end.ticks;

Translate
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