FORUMS: list search recent posts

Batch render scrip to skip existing files

COW Forums : VEGAS Pro

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Roger Smith
Batch render scrip to skip existing files
on Nov 3, 2014 at 7:25:30 pm

Hey all, how do I change the script below to skip a file that exists already instead of just quitting the whole batch render process?

// validate all files and propmt for overwrites
foreach (RenderArgs args in renders) {
ValidateFilePath(args.OutputFile);
if (!OverwriteExistingFiles)
{
if (File.Exists(args.OutputFile)) {
String msg = "File(s) exists. Do you want to overwrite them?";
DialogResult rs;
rs = MessageBox.Show(msg,
"Overwrite files?",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2);
if (DialogResult.Cancel == rs) {
return;
} else {
OverwriteExistingFiles = true;
}
}
}
}


Return to posts index

Roger Smith
Re: Batch render scrip to skip existing files
on Nov 4, 2014 at 4:52:39 pm

Can any script writers out there help me?


Return to posts index

Aleksey Tarasov
Re: Batch render scrip to skip existing files
on Nov 4, 2014 at 5:17:20 pm

change return; to continue; but you should check your script below this block, where rendering actually starts


Return to posts index


Roger Smith
Re: Batch render scrip to skip existing files
on Nov 19, 2014 at 7:07:47 pm

It's just the stock script in Vegas. What other things do I need to check for?

So open it in Notepad, change to continue; save and overwrite, and it should skip to next one?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]