Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro adding same clip after each clip in timeline

  • adding same clip after each clip in timeline

    Posted by Ivan Bald on February 11, 2008 at 12:14 pm

    Hello,

    I have around 100 clips on the timline, I need to insert a short advertisment video clip (5 seconds) between every other clip. How to accomplish this without doing it manually?

    So it would be: clip1 – advertisement – clip2 – advertisement – clip3 – advertisement – clip4… and so on.

    I have searched and tried many options to accomplish this. I was exploring xml support, php generating, macro softwares like Macro Express… none of the ways was satisfying.

    Thanks

    Ivan Bald replied 18 years, 3 months ago 4 Members · 7 Replies
  • 7 Replies
  • Terry Esslinger

    February 11, 2008 at 4:48 pm

    You could just copy the advertisement and paste it each time. Make copy of the first ad placement. Place clip two, paste ad, place clip 3, paste ad etc.

  • Ivan Bald

    February 11, 2008 at 5:31 pm

    Hi Terry,

    that is exactly the way I’m doing it now : )
    Things get complicated when I have to make several DVDs with different “middle” advertisements. To make things even more complicated sometimes I have to replace that middle ad with newer one. I improvised on that by deleting (or moving) the ad from the folder and replacing it with a newer one in order to “trick” Vegas, but if my old ad is let’s say 5 seconds and the newer one is 7 seconds then it starts to get messy: )

    When working with many files on the web, like large image galleries, I always use XML files and update them, but when I export XML from Vegas it’s very complicated and I don’t even know where to start. If I could somehow feed Vegas with the timeline order that would be great !

    Raw XML example in my head would be like:





    …and so on and on…

    Thing is that Vegas uses MUCH more info from XML like lenght, transitions, pixelratio, framerate, deinterlacemethod …
    Just try EXPORT XML script and you can see.

    Other potential solution is building a script which I can’t because lack of knowledge : (

    Anyway, all the suggestions are very welcome : ))

  • Edward Troxel

    February 11, 2008 at 10:17 pm

    You would need a highly specialized script written to perform that task. There are existing scripts that could spread the clips apart by the length you specify (i.e. the length of the ad) but one that adds a specific clip at each point would need to be written.

    Edward Troxel
    JETDV Scripts

  • Gilles Pialat

    February 11, 2008 at 10:52 pm

    Ivan,
    If you are using Vegas8, try this little script, it should do what you are looking for.
    Select the first track (your media should be in the first track).
    Save the script with a ‘.CS’ extension.

    ////////////////
    using Sony.Vegas;

    public class EntryPoint
    {
    Vegas myVegas;
    public void FromVegas(Vegas vegas)
    {
    myVegas = vegas;
    for (int i = myVegas.Project.Tracks[0].Events.Count – 1; i > 0; i–)
    {
    myVegas.Transport.CursorPosition = myVegas.Project.Tracks[0].Events[i].Start;
    myVegas.ImportFile(“D:\\YourFile.AVI”, false); // replace with your file path

    }
    }
    }
    ////////////////////

  • Ivan Bald

    February 11, 2008 at 11:32 pm

    Not the easiest task I stumbled upon, I checked a script from a friend, but it didn’t work out just quite.
    Anyway I’m in the process of creating complex macro automation tasks which would do it. I think I’m half way there, the fact that simple “double click” in the media bin adds the clip to the end of timeline is good.
    Another night beside the machine, yeee : )

  • Gilles Pialat

    February 12, 2008 at 6:26 am

    I forgot to mention you have to enable Ripple Edit before to run the script.

  • Ivan Bald

    February 12, 2008 at 4:46 pm

    Hey Gilles, thanks for the script ! It works great and will definitely come in handy : )

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