I should have mentioned that if you use the library of scripts, you will need to update at least one line of code. For instance, if you use the Select Events From Cursor script, you will need to change the code on line 11 from:
import Sony.Vegas to:
import ScriptPortal.Vegas
and then the scripts should work.
The basic code doesn't seem to have changed that much.
On a side note, if you are looking for a free and nice Java Script editor, you can download Expression Web for free, and though it is old and designed for web pages, it has a nice built in JS editor that makes it easier to find mistakes and code.
/**
* Program: SelectEventsFromCursor.js
* Description: This script will select all the events on all tracks that are
* under the cursor position and to the right of it.
* Author: Johnny (Roy) Rofrano
*
* Date: March 24, 2004
*
**/
import ScriptPortal.Vegas;
import System.Windows.Forms;
try
{
// step through all the tracks
for (var track in Vegas.Project.Tracks)
{
// Step through all events
for (var evnt in track.Events)
{
// Check to see if event is under or to the right of the cursor
if (-1 == Vegas.Cursor.CompareTo(evnt.Start + evnt.Length))
{
evnt.Selected = true;
}
}
}
}
catch (errorMsg)
{
MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
And no, I'm a not a professional programmer, but I did stay at a Holiday Inn Express last night.