Auto Save script in Win7 64bit

Zulqar-Cheema wrote on 12/27/2011, 5:11 AM
Have been using the Autosave script for years now and even managed to get it to work in 9 & 10 in 32bit XP, by making dummie SV8 folders.

Not having any luck in win7 64 bit my old trick does not work, any ideas or is there an updated on about?

Any help in the Crossfades to cuts script would be appreciated as well, in the 64bit world.

TIA

Comments

jetdv wrote on 12/27/2011, 8:15 AM
As far as I know, the current version is working fine. You just need to download and install the current version of Excalibur to make sure you're on the current version.
Zulqar-Cheema wrote on 12/27/2011, 9:31 AM
Thanks JDTV, (your the man) for that information.

I managed to find the files and re-locate them into my new installation.

(Forgot to mention I only have the AutoSave1-1-0.exe single run program)
amendegw wrote on 12/30/2011, 3:48 PM
Anyone want to test a simple script for me? My workflow for Vegas Projects is to.

1) Work on the project for a while.
2) Save the Project.
3) Save a backup Project
4) Open the Main Project again and continue to the next good backup point.
5) Rinse & repeat [chuckle]

So, while after reading this thread, I thought I could write a script to save me some time. It doesn't work behind the scenes - you have to click an icon, but that fits my workflow as I normally get to good backup points where I would run the script.

In any case, here it is: BkupSave.zip Instructions are included.

Caution! I'm a newbie scripter. Don't test on anything valuable until you are comfortable it works as you expect it to.

In any case, I'd be interested in feedback. I'm learning.

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

jetdv wrote on 12/31/2011, 10:21 AM
Auto Save works behind the scenes and save a date/time stamped version every "x" minutes so you can specify if you want them one per minute, one per five minutes, etc...
Gary James wrote on 1/1/2012, 9:54 AM
I took a different approach when I added the Auto-Save feature that's part of the many useful features in my free TimeLine Tools Vegas Extension.

I create a series of project backup files that allows you to selectively restore your project to any point in its development by opening up the backup file saved at the desired date and time. This has saved my bacon a few times while I've been working with SVP v11.

When development on your project is finished. Simply delete all of the backup files that you no longer want to keep.

The following code snippet is called when the backup timer fires based on the user specified backup time interval. In my extension I have a static class that holds my static Vegas variable. The class is named Globals, and my Vegas variable is named myVegas.

	try
{
// if the project has not been modified since the last save, no need to save
if ( false == Globals.myVegas.Project.IsModified )
return;

// get the name of the Vegas Project File on disk
string projpath = Globals.myVegas.Project.FilePath;

// generate temp file name based on the project file plus the date and time it was saved
string tmpfile = Path.GetDirectoryName ( projpath ) + @"\" + Path.GetFileNameWithoutExtension ( projpath ) + " [" + File.GetLastWriteTime ( projpath ).ToString ().Replace ( @"/", "-" ).Replace ( @":", "-" ).Replace ( @" ", "_" ) + "].veg";

// rename the Vegas Project File on disk to the temp file name
File.Move ( projpath, tmpfile );

// save the vegas project to disk using the normal project name
Globals.myVegas.SaveProject ();
}
catch { }


amendegw wrote on 1/1/2012, 4:35 PM
Gary,

You probably have a better method as it appears to be much faster.

My code:
                // Find Current File Name
string fullProjectPath = vegas.Project.FilePath.ToString();

// Split our the Name without the .veg Extension
string[] fileParts = Regex.Split(fullProjectPath, ".veg");

// Add a DateTime Qualify to make the Backup Name unique
string bkupSaveName = string.Format(fileParts[0] + "-{0:yyyy-MM-dd_hh-mm-ss-tt}.veg", DateTime.Now);

// Save the Current Project
vegas.SaveProject(fullProjectPath);

// Save the Backup Project
vegas.SaveProject(bkupSaveName);

// Restore the Current Project
vegas.OpenProject(fullProjectPath);


Must reload the project as the final step. That's bad news as for large projects it could take some time.

Of course, I don't go to the sophistication of of "AutoSave", but my workflow is... I've just done x, y & z - now's a good time for a backup. That way I don't get overwelmed with trying to figure out which backup to restore from.

Ahhh, as with life itself, there are many ways to skin a cat!

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9