What I'm trying to do is to be able to select the clips from track view (rather than mediapool) and add a plugin to MediaFX (like you do with VEGAS Video Stabilizer) instead of EventFX but I just can't figure out how to do this. My base code is something I found on this forum and it works great for just adding it as a EventFX but how can I modify it to put the effect as MediaFX instead?
I'm having a brain freeze right now, can anyone help me?
foreach (Track track in vegas.Project.Tracks) { if (!track.IsVideo()) continue; foreach (VideoEvent videoEvent in track.Events) { if (videoEvent.Selected) { Effect effect = new Effect(plugIn); videoEvent.Effects.Add(effect); effect.Preset = presetName; } } }