Here is a C# script that will do what you want. Save it as a .cs file. This will work in Vegas 6 & 7 (but not Vegas 5. For that you have to convert it to JScript.)
Just change line 15 to the undersample rate you want.
/* ---- CUT HERE ---- */
/*
Script: ChangeUndersampleRate.cs
Original Author: John Rofrano
Last Modified: November 12, 2006.
*/
using System;
using Sony.Vegas;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
// change this next line to the undersample rate you want
double undersample = 0.5;
// Iterate over all of the tracks
foreach (Track track in vegas.Project.Tracks)
{
// if the track isn't a video track, skip it
if (!track.IsVideo()) continue;
// now we know we have only video tracks
// iterate over them and change their undersample rate
foreach (VideoEvent videoEvent in track.Events)
{
videoEvent.UnderSampleRate = undersample;
}
}
}
}
/* ---- CUT HERE ---- */
Wow. I think I'm just grasping concepts in Vegas and then I see this. Is that Arabic... Greek? Thanks much for the time spent in responding, but I've never developed a script or used C#; I only cheat and add scripts that I purchase or others develop. None of the VASST programs or Jetdv scripts do this, or you don't have this saved into a cs file already do you?
If you just open WordPad, then copy my post between the "/* ---- CUT HERE ----*/" lines and paste it into notepad and save it as "ChangeUndersampleRate.cs" in the Vegas Script Menu folder, it will work just fine.
As I said, line 15:
double undersample = 0.5;
is where you enter your undersample rate. Just change the 0.5 to the rate you want and save the script.
Well... it tells me you cut and pasted wrong. ;-) I just sent you an email via the forum. When you reply to me I'll attach the .CS file and send it to you.