Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Batch render scrip to skip existing files

  • Batch render scrip to skip existing files

    Posted by Roger Smith on November 3, 2014 at 7:25 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;
    }
    }
    }
    }

    Roger Smith replied 11 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Roger Smith

    November 4, 2014 at 4:52 pm

    Can any script writers out there help me?

  • Aleksey Tarasov

    November 4, 2014 at 5:17 pm

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

  • Roger Smith

    November 19, 2014 at 7:07 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?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy