Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Slow-motion Script

  • Edward Troxel

    March 20, 2008 at 3:26 am

    This should do it:

    //PlayBackRate.js
    import Sony.Vegas;

    for (var currentTrack : Track in Vegas.Project.Tracks) {
    if (currentTrack.IsVideo() == true) {
    for (var currentEvent : VideoEvent in currentTrack.Events) {
    if (currentEvent.Selected == true) {
    currentEvent.PlayBackRate = .5;
    }
    }
    }
    }

    Edward Troxel
    JETDV Scripts

  • Tony Sarafoski

    March 20, 2008 at 3:34 am

    Edward,

    I get this error when I try applying?

    C:\Program Files\Sony\Vegas 7.0\Script Menu\slow-mo 50js(8) : Objects of type ‘Sony.Vegas.VideoEvent’ do not have such a member

  • Edward Troxel

    March 20, 2008 at 7:13 pm

    I didn’t bother to test it. Try this one (there’s a couple of little corrections):

    //PlayBackRate.js
    import Sony.Vegas;

    for (var currentTrack : Track in Vegas.Project.Tracks) {
    if (currentTrack.IsVideo() == true) {
    for (var currentEvent : TrackEvent in currentTrack.Events) {
    if (currentEvent.Selected == true) {
    currentEvent.PlaybackRate = .5;
    }
    }
    }
    }

    Edward Troxel
    JETDV Scripts

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