Can I somehow force V13 to automatically select the clip that is to the left of the split point on the timeline? This way it would be much faster to cut/delete unwanted fragments of the video than with the selection of the right clip occuring by default.
I've not seen any option to make a L/R selection on a split - but it's a great idea. Perhaps you could suggest it to SCS via Product Suggestions.
Maybe it could have a basic intelligent selection. If the split is less than 50% into the clip, the highlight is to the left; if the split is 50% or more into the clip, then the highlight is to the right.
I wrote a series of "cuts-only" scripts that were designed to let you dramatically increase your editing speed by making all cuts based on the location of the cursor, without having to worry about which events were selected. One of those script was designed to select the video event on the first selected video track under the cursor and, if there was an audio event on the track immediately below, that was selected as well.
The original script was designed so that if you had just split an event, and the cursor was exactly at the split point, it would select the event to the right. I altered that so that in the script below, it will select the event to the left of the cursor. So, if the cursor is anywhere over an event, including at the split point, it will select the prior event.
You have to make sure that the video track is selected before running the script. This will usually be the case if you've been editing anything, and will certainly be the case immediately after a split.
Copy the script below (but only the portion after the words "Code Block:"), paste it in Notepad, and save it with the extension ".js".
//Global declarations
var dStart : Double;
var dLength : Double;
var dCursor : Double;
var trackEnum : Enumerator;
var evnt : TrackEvent;
var CurrentEvnt : TrackEvent;
var track = FindSelectedTrack(); // Use this function to find the first selected track.
var eventEnum = new Enumerator(track.Events);
if (track.IsVideo()) { // Proceed only if selected track is video track.
if ( SelectEventAtCursor() ) { // Function that selects events under cursor.
// Get set to look at track directly below the video track.
trackEnum.moveNext(); // Go to next track.
if (!trackEnum.atEnd()) { // Only proceed if there is a track below the video track.
track = Track(trackEnum.item()); // When doing the first track (above), these two lines were executed
eventEnum = new Enumerator(track.Events); // in the FindSelectedTrack() function.
if (track.IsAudio()) { // Only trim the event if this is an audio track.
SelectEventAtCursor();
}
}
}
}
// Vegas.Cursor = CurrentEvnt.Start; // Enable this line to move cursor to start of selected event.
Vegas.UpdateUI();
} catch (e) {
MessageBox.Show(e);
}
// End of main program
// Beginning of functions
function FindSelectedTrack() : Track {
trackEnum = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());
Here's a version of John's script that will select the event immediately to the left of the cursor. Unlike John's script, it selects the event even if there is a gap after it (or it's the last event on the track), and only if it reaches to the cursor (i.e. following a split or an ALT+] or if the cursor has been snapped to the event's end).
The right black button on my Contour Shuttle Pro 2 now does this 3-stage macro:
Runs a script that deselects all events then does ALT+]
Then a 100ms pause (so that the next bit works. Might need to be longer in some cases)
Then runs the above script so I get immediate feedback on the trimmed event length in the Show Event Length extension.
I also have an equivalent ALT+[ macro on the Shuttle's left button, but the pause isn't required, and it uses the first script in this comment instead of the one above.