CreateStereo3DSubclip function started working wrong in Vegas 19!

Sam-Fisher wrote on 7/22/2022, 1:28 PM

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

Comments

jetdv wrote on 7/23/2022, 8:56 AM

So you're trimming one of the events to make them start at the same location? What would happen if you make the trimmed one a "subclip"? Does the same issue happen then?

One of the VEGAS developers would need to check this to see if some code has changed. My only suggestion would be that if it works in 18, do the pairing in 18, save the project, and then you can edit in the newer version (19 or, soon, 20).

Sam-Fisher wrote on 7/25/2022, 1:10 PM

So you're trimming one of the events to make them start at the same location? What would happen if you make the trimmed one a "subclip"? Does the same issue happen then?

One of the VEGAS developers would need to check this to see if some code has changed. My only suggestion would be that if it works in 18, do the pairing in 18, save the project, and then you can edit in the newer version (19 or, soon, 20).

Hi. Subclips didn't help because CreateStereo3DSubclip uses "Media" class directly. I can't set different start time for right and left streams in the 3D subclip.The function always resets start time.