Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Disable resample script?

  • Disable resample script?

    Posted by Brad Leigh on July 10, 2013 at 4:38 pm

    Good morning!
    I read somewhere on the forum about a disable resample script. I don’t see it native script in Vegas 12, anybody know where I can find this?
    I assume resample is only needed when changing frame rates? or speeding up and slowing down. Is there a script to turn OFF loop in event properties as well?
    Another question. Is there anyway to get track motion to follow ripple edit? or associate it with an event?
    I am doing an edit with a lot of video tracks so it’s inconvenient to use
    a track for each event, when I tighten my edit I have to go back and drag my track motion keyframes.
    P.S. Regarding all these crash posts. I have owned Vegas 8 10pro and 12 pro. Not to jinx my self I can hardly remember a crash in years.
    But I don’t use GPU, and I tend to stick with pretty stock systems.
    Right now my i7 win 7 pro, Gateway with two external SATA’s off the mother board is quite robust. Just a note to people that may think Vegas is generally unstable after reading other posts on this forum.
    Thanks
    Brad

    i7 2600 3.4 Ghz 8Gig Ram , Win 7 Pro, Vegas Pro 12

    Brad Leigh replied 12 years, 10 months ago 3 Members · 3 Replies
  • 3 Replies
  • Matt Carlson

    July 10, 2013 at 7:14 pm


    using System;
    using Sony.Vegas;

    public class EntryPoint
    {
    public void FromVegas(Vegas vegas)
    {
    foreach (Track track in vegas.Project.Tracks)
    {
    foreach (TrackEvent ev in track.Events)
    {
    if (ev.Selected)
    {
    //All selected event modifications follow

    ev.Loop = false;

    if (ev.IsVideo())
    {
    VideoEvent ve = (VideoEvent)ev;
    ve.ResampleMode = VideoResampleMode.Disable;
    }
    }
    }
    }
    }
    }

    You can modify the code after “if (ev.Selected)” to work on a single parameter by deleting parts and saving it as a separate script if you need to do so.

  • Norman Black

    July 10, 2013 at 8:56 pm

    A script is good for wholesale changes but also remember that you can set the resample option on any arbitrary selected events via the right click, switches, context menu.

  • Brad Leigh

    July 11, 2013 at 12:56 am

    Matt
    Thank You! I’ll give it as a shot.
    Brad

    i7 2600 3.4 Ghz 8Gig Ram , Win 7 Pro, Vegas Pro 12

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