Comments

johnmeyer wrote on 11/25/2005, 9:24 AM
I adapted this from an existing script. It does what you want, although it does NOT de-select events to the right of the cursor (which you may or may not like).
/** 
* Program: SelectEventsFromCursorToBeginning.js
* Description: This script will select all the events on all tracks that are
* under the cursor position and to the left of it.
* Original Author: Johnny (Roy) Rofrano john_rofrano at hotmail dot com
*
* Date: March 24, 2004
* Adapted by John Meyer to select to beginning.
* November 25, 2005
*
**/

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 left of the cursor
if (1 == Vegas.Cursor.CompareTo(evnt.Start))
{
evnt.Selected = true;
}
}
}
}
catch (errorMsg)
{
MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
JohnnyRoy wrote on 11/25/2005, 9:42 AM
Hi Keith,

With Ultimate S you can select events in 9 directions and any combination of that 9:

1) Under Cursor
2) Upper Left (all events on tracks above current track and left of the cursor)
3) Left (all events on current track and left of the cursor)
4) Lower Left (all events on tracks below current track and left of the cursor)
5) Upper Right (all events on tracks above current track and right of the cursor)
6) Right (all events on current track and right of the cursor)
7) Lower Right (all events on tracks below current track and right of the cursor)
8) Upper (all events on tracks above current track)
9) Lower (all events on tracks below current track)

So you can do complex selections all the events to the upper left AND lower right of the current track and cursor position. It does this by allowing you to slecify if you want to select events Above, On, and/or Below the current track, and then Left, Under, and/or Right of the cursor position.

For your particular request you would tell Ultimate S so select all events On the same track and Left of the cursor. (unless you wanted all events on all tracks, in which case you would select Above+On+Below and then Left)

~jr
jetdv wrote on 11/25/2005, 4:48 PM
And with Excalibur you can also flexibly select events:

Left of cursor, right of cursor, or in the selected area with the options of selecting on all tracks or only selected tracks and the ability to split events at the cursor location.

Scripts definitely make the process easier and faster.