Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro help creating a script…Vegas Pro 9.0

  • help creating a script…Vegas Pro 9.0

    Posted by Valerie Morrison on July 14, 2009 at 4:06 am

    Hi everyone.

    I am trying to create a script. What I want to do is:

    – For a selected track (and each event in the track), I want to separate the events by X (time in seconds). In other words, I want an equal amount of blank space between each event. This would require moving the event forward in time by X, then going to the next event and doing the same, and so on.

    Ideally, this would work on all the events in the video track and ALSO move the corresponding audio event tied to it (so as not to get them out of sync).

    Is this do-able? Any scripts out there doing this?
    I have some experience in scripting, but I’m stuck on this one.

    Thanks in advance.

    -Valerie

    Waqas Abbasi replied 12 years, 6 months ago 5 Members · 4 Replies
  • 4 Replies
  • Nathan Walters

    July 14, 2009 at 5:24 am

    I would use a media generator as a spacer. This would ensure that all the in between times remain equal in length. Thmen before you render, delete the media generators.

  • Theo Van laar

    July 14, 2009 at 9:10 am

    Scripts like this are already available. You can find it e.g in Excalibur.

    https://www.jetdv.com/excalibur/home.php

    Theo

  • John Rofrano

    July 15, 2009 at 12:16 am

    Hi Valerie,

    Yes, this is doable and I have a script on the VASST web site called Add2SecondGap.js that will show you how this done. Just download it an examine the source code. It doesn’t move the audio but it does move events on all selected tracks so all you have to do is select both the video and audio tracks and it will space the events evenly.

    The original purpose of the script was to add a perfect 2 second gap to audio tracks before burning them to CD using Disc-At-Once.

    If you want to see how to automatically move the audio too, I can post some code to show you how to do this. Just let me know. You have to use the Grouped property of an event to get it’s grouped events and move them the same amount. Like I said, let me know and I’ll post some code and walk you through it.

    ~jr

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

  • Waqas Abbasi

    October 26, 2013 at 10:42 am

    Hi John,

    You have been a great source of knowledge for me and I have greatly improved my video editing skills because of you.
    I have a issue that I am facing. I have many regions (around 200) of video clips. Some have no space in between them and some have a lot. These videos are of 200 words being pronounced. But the problem is that at many places the video clip of word is longer and the audio clip(pronunciation) is shorter. Each pair of corresponding word and pronunciation is grouped.

    I want to add one second of gap between every word. I have tried using many scripts and softwares like Excalibur, Vegasaur but the video clips and audio clips go out of sync. What I want to do is to set a gap of one second between every video and I want the audio clips to move according to the above grouped video. I don’t want a gap of one second between every audio clip. It would be great if you could guide me.

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