Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Creating a Keyboard shortcut

  • Creating a Keyboard shortcut

    Posted by Jim Kaye on July 24, 2009 at 12:55 am

    In the timeline is there a way to create a keyboard shortcut (single key?) to activate “select events to end”? It would be a time saver if possible.

    Mike Kujbida replied 16 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Mike Kujbida

    July 24, 2009 at 3:08 am

    It’s not a keyboard shortcut but here’s a script I have in my collection that John Rofrano wrote that might do what you want.

    /**
    * 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 john_rofrano at hotmail dot com
    *
    * Date: March 24, 2004
    *
    **/

    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);
    }

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy