One of my favorite and most often used scripts, Select Events from Cursor, doesn't work in V8. Notice a few others aren't working but this one really cuts into my workflow. Does anyone know of a quick fix for the current script?
If it's the one I uploaded to the VASST web site it is an old version that only works with Vegas 4. If you change:
import SonicFoundry.Vegas;
to
import Sony.Vegas;
It should work fine. I'm having difficulty updating it on the VASST site right now. Here is the whole script.
/**
* 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 - Initial script
* September 16, 2007 - Updated to use Sony libraries
*
**/
import Sony.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);
}
yeah..it selects ALL events on ALL tracks from the cursor to the end of the timeline. "select events to end' just does the events on a selected track. this script is one i've used daily since JR wrote it. i feel much safer with it than ripple edit.
I think it's Vegas 8 - not the script. The "Select Events" tool in Excalibur works - it selects all the proper events. However, you then grab one to move them all and only the one you grabbed moves. The rest all remain in place.
I agree with Edward. I don't think it's the script. Same result with the SETE script: The script selects all the events but Vegas will only move the one with the cursor on it. Bummer.
I would think this is a bug in Vegas Pro 8.0. The events are selected so Vegas should move them. There is nothing we can do in our scripts since it's Vegas 8 that's broken. (i.e., a selected event is not always treated the same depending on whether it is select by a script or the timeline) The funny thing is, you can drag ANY of the selected events and only the original one moves. Very strange behavior.