-
Script for Select Event With Playback Rate 0,5
Posted by Leaning Less on November 10, 2015 at 3:14 pmPlease, could anyone help with the writing of the script?
Steve Rhoden replied 10 years, 5 months ago 3 Members · 4 Replies -
4 Replies
-
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 -
John Rofrano
November 13, 2015 at 12:27 pm -
Steve Rhoden
November 24, 2015 at 4:50 amThat 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
Reply to this Discussion! Login or Sign Up