If I have hundreds of .veg project files and I need to extract the in and out times of all events for each of them, is it possible to do this using a scripting solution without manually opening up every .veg file. I would like to be able to just launch the script and process all theses .veg files and have the relevant start/end times in a different file for each project.
@wendell, the short answer is yes. You can select a bunch of VEG files from a script and it can open each one of them sequentially and do whatever you want to do with them. Please go to www.jetdv.com and take a look at my tutorials there. In particular, this tutorial show selecting multiple VEG files and then rendering them all out to a specific format:
Now, instead of rendering, you would need to go through each of the event on the timeline and then output that information to a file. To go through the tracks and events, this recent tutorial will show how that is easily done using a "foreach" on the tracks followed by a "foreach" on the events on each track. It does to other things like only processes the events on video tracks but the process is the same.
Then you'd need the code to output to a text file. I have not done any tutorials on doing that at this time.
I'd be happy to create a tutorial on this if you could tell me exactly what pieces of information you want placed in the text file. I would name the text file the same as the VEG file only ending in .txt.
This is a case where the same media was used 3 times The very beginning of the clip was used on track 5 at 6:10.15 to 6:14.24. At 6:14.18 through 6:25.06, 20.18 seconds of the clip was used beginning at 18.02 into the clip. Finally, at 6:35.01 ending at 6:48.22, another 13.21 seconds was used starting at the 1:04.09 point inside the clip.
Do you need to differentiate between audio and video tracks/events? That could be added after the track number. Also, generated medias ("VEGAS Titles and Text" for example) could be left off the list if you don't want them.
Editing the tutorial now! It will be on my website/channel on June 13th. Whether you skip or keep the generated media is really very simple. Right now I have:
if (!evnt.ActiveTake.Media.IsGenerated())
Two ways to "turn that off" - by changing that one line: