> If so, how are you supposed to tell what script works for what version of Vegas…. most are not identified externally or internally.
Well… that’s why people buy professionally written scripts like Ultimate S Lite/Pro and Excalibur so that someone else can maintain that for you. 😉
Internally you an tell because older scripts were written when Sonic Foundry owned Vegas and they import SonicFoundry.Vegas. Sony scripts will import Sony.Vegas. Most of the time all you have to do is change the line:
import SonicFoundry.Vegas;
to
import Sony.Vegas;
and the script will work.
> And to cut to the chase… anyone know where I can find a Vegas 9.0b Pro script that adds a marker to the beginning of each clip?
For free… this should do the trick:
/**
* Program: MarkersAtEvents.cs
* Author: John Rofrano
* Purpose: This script will place a marker at each event on the selected track(s)
* Copyright: (c) 2009, Sundance Media Group / VASST
* Updated: December 23, 2009
**/
using System;
using System.Windows.Forms;
using Sony.Vegas;
class EntryPoint
{
public void FromVegas(Vegas vegas)
{
foreach (Track track in vegas.Project.Tracks)
{
// only process selected tracks
if (!track.Selected) continue;
foreach (TrackEvent trackEvent in track.Events)
{
Marker marker = new Marker(trackEvent.Start, trackEvent.ActiveTake.Name);
try
{
vegas.Project.Markers.Add(marker);
}
catch (Exception e)
{
MessageBox.Show(String.Format("Could not place a marker at {0}\nError message is: {1}", trackEvent.Start.ToString(), e.Message), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
}
~jr
http://www.johnrofrano.com
http://www.vasst.com