FORUMS: list search recent posts

Script for Select Event With Playback Rate 0,5

COW Forums : VEGAS Pro

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
leaning less
Script for Select Event With Playback Rate 0,5
on Nov 10, 2015 at 3:14:56 pm

Please, could anyone help with the writing of the script?


Return to posts index


John Rofrano
Re: Script for Select Event With Playback Rate 0,5
on Nov 11, 2015 at 1:51:56 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



Return to posts index

leaning less
Re: Script for Select Event With Playback Rate 0,5
on Nov 13, 2015 at 5:56:24 am

Thank you! It's worked!


Return to posts index


John Rofrano
Re: Script for Select Event With Playback Rate 0,5
on Nov 13, 2015 at 12:27:09 pm

You're welcome. Glad I could help.

~jr

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



Return to posts index

Steve Rhoden
Re: Script for Select Event With Playback Rate 0,5
on Nov 24, 2015 at 4:50:31 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:
http://www.facebook.com/FilmexCreativeMedia


Return to posts index

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