Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Script for Select Event With Playback Rate 0,5

  • John Rofrano

    November 11, 2015 at 1:51 pm

    [leaning less] “Please, could anyone help with the writing of the script?”

    I’m not sure what help you are looking for so I just wrote one for you. Feel free to ask questions about how it works:
    ///*******************************************************************
    /// Program: Select Half Playbackrate.cs
    /// Author: John Rofrano
    /// Description: This script will select all video events that have
    /// their playback rate set to 0.5
    /// Last Updated: November 11, 2015
    /// Copyright: (c) 2015 John Rofano, All Rights Reserved
    ///******************************************************************
    using System;
    using System.Windows.Forms;
    using Sony.Vegas;

    class EntryPoint
    {
    public void FromVegas(Vegas vegas)
    {
    try
    {
    //
    // find all of the video events that use 0.5 playback rate
    //
    foreach (Track track in vegas.Project.Tracks)
    {
    if (!track.IsVideo()) continue;

    foreach (VideoEvent videoEvent in track.Events)
    {
    if (videoEvent.PlaybackRate == 0.5)
    {
    videoEvent.Selected = true;
    }
    }
    }
    }
    catch (Exception e)
    {
    MessageBox.Show(e.Message);
    }
    }
    }
    😉

    ~jr

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

  • Leaning Less

    November 13, 2015 at 5:56 am

    Thank you! It’s worked!

  • John Rofrano

    November 13, 2015 at 12:27 pm

    You’re welcome. Glad I could help.

    ~jr

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

  • Steve Rhoden

    November 24, 2015 at 4:50 am

    That was a quick one John, (smile)

    Steve Rhoden (Cow Leader)
    Film Maker & VFX Artist.
    Owner of Filmex Creative Media.
    Samples of my Work and Company can be seen here:
    https://www.facebook.com/FilmexCreativeMedia

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