Comments

Grazie wrote on 9/1/2008, 7:09 AM
The cursor could potentially be covering 3,4,5 . . n tracks? How would it know which Event to select? Having said that, what exactly are you trying to achieve?

Grazie
baysidebas wrote on 9/1/2008, 8:13 AM
To save all the labor of clicking your mouse button?

If you're concerned about inadvertently shifting the cursor position, just do a CTL-click. That will select the event without moving the cursor.
JJKizak wrote on 9/1/2008, 8:15 AM
Seems a script could do that---select first event at the right of cursor position or the left of cursor position. But it is another step or two, why not just click the event?
JJK
TheHappyFriar wrote on 9/1/2008, 9:06 AM
i thought a script has been made to do this. He may want to select events that can't be seen on the TL too.
Sebaz wrote on 9/1/2008, 10:15 AM
The cursor could potentially be covering 3,4,5 . . n tracks? How would it know which Event to select? Having said that, what exactly are you trying to achieve?

Whatever tracks and events the cursor is touching, that's what I would like selected, of course not always, but the possibility of choosing it. I guess by the replies here it doesn't come in Vegas, but it needs to be set through a script.

Basically I would like to position the cursor at the start of the frame I want to start cutting, press shift and press the right arrow key until I reach the end point, and press delete. If the event was selected, this works as I intend it to, cutting the frames I set it to. But if the event wasn't selected, it doesn't cut anything, instead it brings backward the next event creating a transition as long as the amount of frames you wanted to cut from the event. If the event had been selected automatically as I would like, it would always work by cutting as many frames as I want it to.
Sebaz wrote on 9/1/2008, 10:31 AM
Seems a script could do that---select first event at the right of cursor position or the left of cursor position. But it is another step or two, why not just click the event?

The goal for me is to grab the mouse as little as possible. It's faster to keep working with the keyboard.
Sebaz wrote on 9/1/2008, 10:32 AM
i thought a script has been made to do this.

If it's made, can you remember where it is?
Rosebud wrote on 9/1/2008, 11:01 AM
Try this '.cs' script:


//
// script to select all events under cursor
//
using System;
using Sony.Vegas;

public class EntryPoint
{
Vegas myVegas;
public void FromVegas(Vegas vegas)
{
myVegas = vegas;
foreach (Track track in myVegas.Project.Tracks)
{
foreach (TrackEvent evnt in track.Events)
{
if ((evnt.Start <= myVegas.Cursor) && (evnt.End > myVegas.Cursor))
evnt.Selected = true;
else
evnt.Selected = false;
}
}
}
}
Sebaz wrote on 9/1/2008, 11:18 AM
Thanks for the script. Is there a way to have it always activated, instead of having to call it for it to work?
TheHappyFriar wrote on 9/1/2008, 11:45 AM
i'm using vegas 8. I can go to "options" - customize keyboard.

then find the "scripting" section. it lists all your installed scripts. I assigned that script to F10 because nothing is already assigned to F10.
Sebaz wrote on 9/1/2008, 11:48 AM
i'm using vegas 8. I can go to "options" - customize keyboard.

I did that but assigning it to the letter C. However, what I would like is for it to be loaded all the time, just so whatever event the cursor is at is selected automatically. Pressing the letter C is one step better than having to move the hand to the mouse, but still it would be even more time saving if I didn't even have to do that.
Rosebud wrote on 9/1/2008, 12:36 PM
Maybe with a Custom Command (VP8 only).
But as I know, there is no event handler for cursor position changes.
johnmeyer wrote on 9/1/2008, 3:19 PM
My cuts-only scripts include a script for selecting the event under the cursor, plus more:

http://www.vasst.com/search.aspx?g=1&text=cuts%20only
TheHappyFriar wrote on 9/1/2008, 6:31 PM
However, what I would like is for it to be loaded all the time, just so whatever event the cursor is at is selected automatically

That wouldn't make much sense. If you clicked anywhere on the TL & there was an event anywhere up or down you could end up deleting/moving tongs of things you didn't know about. similar to leaving auto ripple/affect all tracks/etc. on all the time.
Sebaz wrote on 9/1/2008, 7:38 PM
That wouldn't make much sense. If you clicked anywhere on the TL & there was an event anywhere up or down you could end up deleting/moving tongs of things you didn't know about. similar to leaving auto ripple/affect all tracks/etc. on all the time.

What I meant is that I would like it on all the time, as long as I can turn it off if I need to. For a simple cuts only editing, it would come in handy to have every event I'm on automatically selected.
TheHappyFriar wrote on 9/1/2008, 9:05 PM
perhaps have it so if you hold down "c" when clicking with the mouse it does it? Not sure if you can do that via vegas. My razor mouse lets you assign buttons on the mouse to keyboard+mouse macros, so it could be done that way.