-
adding same clip after each clip in timeline
Posted by Ivan Bald on February 11, 2008 at 12:14 pmHello,
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 pmYou 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 pmHi 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 -
Gilles Pialat
February 11, 2008 at 10:52 pmIvan,
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 pmNot 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 amI forgot to mention you have to enable Ripple Edit before to run the script.
-
Ivan Bald
February 12, 2008 at 4:46 pmHey Gilles, thanks for the script ! It works great and will definitely come in handy : )
Reply to this Discussion! Login or Sign Up
