Script for deleting all muted clips in timeline gwailo wrote on 6/30/2010, 3:43 AM Is there a script? Or can a script be made that will delete all clips in the timeline, which have the mute switch set to 'on' ? Back to post
Comments JohanAlthoff wrote on 6/30/2010, 8:13 AM using Sony.Vegas; public class EntryPoint { public void FromVegas(Vegas app) { foreach (Sony.Vegas.Track currentTrack in app.Project.Tracks) { System.Collections.Generic.List<Sony.Vegas.TrackEvent> killSheet = new System.Collections.Generic.List<TrackEvent>(); foreach (Sony.Vegas.TrackEvent currentEvent in currentTrack.Events) { if (currentEvent.Mute == true) killSheet.Add(currentEvent); } foreach (Sony.Vegas.TrackEvent victim in killSheet) { currentTrack.Events.Remove(victim); // BLAM } } } } gwailo wrote on 6/30/2010, 8:54 AM Blam Thanks! Both JohanAlthoff and Vegas are amazing. 1