Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro swapping events?

  • John Rofrano

    November 26, 2010 at 1:22 am

    [Gilles Gagnon] “i.e. select 2 events, hit a magic key combo and have them swapped?”

    VASST Ultimate S Pro 4 does this and many other “magic” combos. 😉

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Mike Kujbida

    November 26, 2010 at 2:36 am

    John, you obviously forgot about this script you wrote a “few” years ago 🙂

    /**
    * Program: SwapEvents.js
    * Description: This script will swap the location of the firt two selected
    * events that it finds.
    *
    * Author: Johnny (Roy) Rofrano john_rofrano at hotmail.com
    *
    * Date: April 25, 2004 – Initial release
    *
    **/
    import System.Windows.Forms;
    import Sony.Vegas;

    try
    {
    var firstEvent : TrackEvent = null;
    var secondEvent : TrackEvent = null;
    var swapStart : Timecode = new Timecode(0);

    // step through all events looking for first two
    for (var track in Vegas.Project.Tracks)
    {
    for (var evnt in track.Events)
    {
    if (evnt.Selected && firstEvent == null)
    {
    firstEvent = evnt;
    continue;
    }
    if (evnt.Selected && secondEvent == null)
    {
    secondEvent = evnt;
    break;
    }
    }
    if (firstEvent != null && secondEvent != null)
    {
    break;
    }
    }
    // Swap the start times
    if (firstEvent == null || secondEvent == null)
    {
    throw “Two selected events could not be found.”;
    }

    // If they are on the same track just swap the start times
    if (firstEvent.Track.Index == secondEvent.Track.Index)
    {
    swapStart = secondEvent.Start
    secondEvent.Start = firstEvent.Start;
    firstEvent.Start = swapStart;
    }
    else
    {
    // make a copy to the new track location
    firstEvent.Copy(secondEvent.Track, secondEvent.Start);
    secondEvent.Copy(firstEvent.Track, firstEvent.Start);
    // remove the old events from their tracks
    firstEvent.Track.Events.Remove(firstEvent);
    secondEvent.Track.Events.Remove(secondEvent);
    }
    }
    catch (errorMsg)
    {
    MessageBox.Show(errorMsg, “Swap Events – Error”, MessageBoxButtons.OK, MessageBoxIcon.Error);
    }

  • Gilles Gagnon

    November 26, 2010 at 2:43 am

    Hey John,

    I just purchased US4 last week! where is the bugger hiding? I’m still learning the interface. PS. I used the photo montage today :).

    Gilles

  • Aleksey Tarasov

    November 26, 2010 at 4:39 am

    Select first event and drag’n’drop it to the second one with the right mouse button. In the opened menu choose Shuffle.
    There is no key combination.

  • Danny Hays

    November 26, 2010 at 5:13 am

    You can right click on the file you want to replace in the project media tab and select replace, select file to replace it. If you have alot of files and are not sure which file it is in the project media tab, right click on it in the timeline and click “select in project media list” It will highlight in the list. Hope this helps, Danny Hays

  • Gilles Gagnon

    November 26, 2010 at 11:45 am

    Lovely!
    Thanks!

    Gilles

  • Gilles Gagnon

    November 26, 2010 at 11:53 am

    Handy trick Danny…. Thanks!

    Gilles

  • John Rofrano

    November 26, 2010 at 3:45 pm

    [Mike Kujbida] “John, you obviously forgot about this script you wrote a “few” years ago :-)”

    You know… my memory isn’t what it use to be. 2004 seems like such a long time ago! That’ll work too. 😉

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • John Rofrano

    November 26, 2010 at 3:48 pm

    [Gilles Gagnon] “I just purchased US4 last week! where is the bugger hiding? I’m still learning the interface. PS. I used the photo montage today :).”

    Look on the Edit Tools tab on the right side in the Adjust Events section under Selected Events is Swap Events and Send Selected Events to End.

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Mike Kujbida

    November 26, 2010 at 4:30 pm

    [John Rofrano] “You know… my memory isn’t what it use to be.”

    Neither is mine.
    I’d love to be able to walk into a store and buy a few more gigs of it 🙂

Page 1 of 2

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