script for veg file refresh

signum wrote on 2/23/2012, 12:00 PM
Hello,

I need a script to refresh automatically a veg file when it is saved by another person.

I explain. I want a network with 2 pc's. All files are automatically backupped from pc 1 to pc 2 ( refresh rate every 5') Both pc's have the same veg project opened, but pc 1 uses the original veg file and media files, pc 2 uses the copy on his own harddisk.
How can I obtain an automatic refresh of the vegas timeline every time that pc 1 saves his veg project ?
The reason for this complicated setup ? pc 1 is recording audio during a CD recording session, pc 2 is real time editing on the copy of the veg file and media files without interfering with pc 1. pc 2 is even not allowed to change any file on pc 1.

Comments

Gary James wrote on 2/24/2012, 3:29 PM
Unfortunately a Sony Vegas Pro script can not do this for you Automatically.

Scripts (either text scripts, or script DLLs) run modal in Vegas. That means they run, they perform their action, and they terminate.

To do what you want, you could write a script that reads the Time/Date stamp of the project .VEG file, and if it's newer than the Time/Date that you previously saved somewhere (to disk or in the registry) then you would give the user the option to reload the project from disk.

The problem is, you would have to keep manually running the script.

What you want to do is better implemented in a Sony Vegas Pro "Command Extension" DLL. This is a program that loads and runs in the background along with Vegas. Excalibur, Ultimate-S and my free Timeline Tools utility are all Vegas Pro Command Extensions.
altarvic wrote on 2/25/2012, 2:44 AM
This is not possible. Because Vegas doesn't support multi-user access to the same project.
Once you refresh the project you will lose all your changes. I recommend to divide your project into several parts (different .veg files) and combine them in the final stage (use nested projects)
signum wrote on 3/6/2012, 11:07 AM
thanks Gary,

I'll have a look at Command Extensions and see if somebody can help me.

thanks alot for your information,

Johan
Gary James wrote on 3/6/2012, 1:11 PM
Keep in mind that altarvic is correct. Only one user can have a .veg file open at a time. But you can be working on another project, and when your co-developer finishes making changes to the main project, your command extension dll can detect this and inform you of the update.

My Timeline Tools web site also contains an example Sony Vegas Pro Command Extension DLL Project for Visual Studio 2010.