Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Renaming Regions in Vegas

  • Renaming Regions in Vegas

    Posted by Daniel Payne on January 11, 2011 at 9:35 pm

    Hi all!

    I’m new to this thread but I want to thank the contributors to it for helping me out so many times, I’ve been on here a lot since I started using Vegas a few years ago.

    I’m stuck on what I’m sure is an easy task. I have several hundred media files that I want to batch render using Vegas. The files are already named and I want to keep these names, but right now I can’t find a way to do this. I’m dropping them into the timeline, using a AddRegionstoEvents script that I found here, then batch rendering, but the resulting filenames are 1,2,3,4 etc. which would mean I’d have to go back and rename nearly 300 files. Anyone know how to drop the files in and create the regions using the original filenames?

    Thanks in advance!

    Daniel Payne

    John Rofrano replied 15 years, 4 months ago 3 Members · 4 Replies
  • 4 Replies
  • John Rofrano

    January 12, 2011 at 2:17 am

    [Daniel Payne] “I’m stuck on what I’m sure is an easy task. I have several hundred media files that I want to batch render using Vegas. The files are already named and I want to keep these names, but right now I can’t find a way to do this. “

    There are professional scripts like Sony Vegas Pro Production Assistant and VASST Ultimate S Pro that will batch render the files for you. Production Assistant can also process the files before rendering like adding logos, letter boxing, color correcting, etc. all in batch mode. If you do this a lot, they may be worthwhile to have.

    [Daniel Payne] “I’m dropping them into the timeline, using a AddRegionstoEvents script that I found here, then batch rendering, but the resulting filenames are 1,2,3,4 etc. which would mean I’d have to go back and rename nearly 300 files. Anyone know how to drop the files in and create the regions using the original filenames?”

    Here is a script that I wrote that will create regions around all events on the selected track(s) using the active take name (which, I believe, is exactly what you want).

    /**
    * Program: RegionsAtEvents.cs
    * Author: John Rofrano
    * Purpose: This script will place a region at each event on the selected track(s)
    * Copyright: © 2010, Sundance Media Group / VASST, All Rights Reserved
    * Updated: February 27, 2010
    **/
    using System;
    using System.Windows.Forms;
    using Sony.Vegas;

    class EntryPoint
    {
    public void FromVegas(Vegas vegas)
    {
    foreach (Track track in vegas.Project.Tracks)
    {
    // only process selected tracks
    if (!track.Selected) continue;

    foreach (TrackEvent trackEvent in track.Events)
    {
    Region region = new Region(trackEvent.Start, trackEvent.Length, trackEvent.ActiveTake.Name);
    try
    {
    vegas.Project.Regions.Add(region);
    }
    catch (Exception e)
    {
    MessageBox.Show(String.Format("Could not place a region at {0}\nError message is: {1}", trackEvent.Start.ToString(), e.Message), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
    }
    }
    }
    }
    }
    Enjoy,

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

  • Aleksey Tarasov

    January 12, 2011 at 7:36 am

    Vegasaur provides the advanced tool for batch rendering – Transcoder that will process your files with ease. Also there is the Markers tool, which can help you to create regions with original file names.

    Best regards.

  • Daniel Payne

    January 14, 2011 at 7:51 pm

    That’s awesome John! It worked perfectly. Thanks a million! Now I can get on with my work!

  • John Rofrano

    January 14, 2011 at 8:24 pm

    Thanks Daniel, I’m glad you found it useful.

    ~jr

    http://www.johnrofrano.com
    http://www.vasst.com

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