Comments

jetdv wrote on 10/9/2022, 1:20 PM

Yes...
 

using System;
using System.IO;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using ScriptPortal.Vegas;

public class EntryPoint
{
    Vegas myVegas;

    public void FromVegas(Vegas vegas)
    {
        myVegas = vegas;

        foreach (Track track in myVegas.Project.Tracks)
        {
            if (track.IsVideo())
            {
                foreach (TrackEvent evnt in track.Events)
                {
                    if (evnt.Selected)
                    {
                        VideoEvent videoEvent = (VideoEvent)evnt;
                        // set Smart or Force or Disable on the next line...
                        VideoResampleMode VRMode = VideoResampleMode.Smart;
                        // VideoResampleMode.Force;
                        // VideoResampleMode.Disable;
                        videoEvent.ResampleMode = VRMode;
                    }
                }
            }
        }

    }
    
}

By default, the above changes to "Smart" mode. But it shows the proper options for "Force" and "Disable" so just change the VRMode = VideoResampleMode.Smart; line to use the option you want. This will change the resample mode for all selected video events. So if you want to change all events on the timeline, you might want to just press CTRL-A and then run the script. I named the file "resample.cs".