Hello. I have written a script which pairs all selected Left/Right videos into stereo 3D subclips. It worked fine in Vegas 18, but it works wrong in Vegas 19 (build 643). As I use 2 separate cameras to shoot, I synchronize my clips manually first to find the same moment in the left and right videos. Then I pair my clips with the script. Vegas 19 resets the clips when it pairs them into 3D subclips, so both videos starts from frame 0. It destroys my synchronization. It is interesting that when I pair my clips manually, vegas doesn't reset the timing.
Please, help either to update my script to new API or fix the function if it is a bug!
for(var i=0; i<trackevents_L.Count; i++){ var trackevent_L = trackevents_L[i]; var trackevent_R = trackevents_R[i]; var media_L = trackevent_L.Takes.Item(0).Media; var media_R = trackevent_R.Takes.Item(0).Media; if(Vegas.Project.MediaPool.CanCreateStereo3DSubclip(media_L, media_R)){ var sub_clip = Vegas.Project.MediaPool.CreateStereo3DSubclip(media_L, media_R); var smedia = Media(sub_clip); var stream = smedia.Streams[0]; var newEvent = new VideoEvent(trackevent_L.Start, trackevent_L.Length); video_track_for_stereo_clips.Events.Add(newEvent); var take = new Take(stream); newEvent.Takes.Add(take);
The full script is here:
https://www.mediafire.com/file/mmmbqxyku1vefqv/CreateStereo3DSubclipsFromSelectedPairs.zip/file