Comments

Marco. wrote on 1/22/2019, 12:57 PM

Replace "Sony.Vegas" with "ScriptPortal.Vegas" in this script.

Former users wrote on 1/22/2019, 3:44 PM

For MAGIX Vegas Pro 14 or newer, save the script bellow as extension (.cs)

 

using ScriptPortal.Vegas;

public class EntryPoint

{

    public void FromVegas(Vegas app)

    {

        foreach (ScriptPortal.Vegas.Track currentTrack in app.Project.Tracks)

        {

            System.Collections.Generic.List<ScriptPortal.Vegas.TrackEvent> killSheet = new System.Collections.Generic.List<TrackEvent>();

            foreach (ScriptPortal.Vegas.TrackEvent currentEvent in currentTrack.Events)

            {

                if (currentEvent.Mute == true)

                    killSheet.Add(currentEvent);

            }

            foreach (ScriptPortal.Vegas.TrackEvent victim in killSheet)

            {

                currentTrack.Events.Remove(victim); // BLAM

            }

        }

    }

}
 

Former users wrote on 1/22/2019, 3:46 PM

For SONY Vegas Pro, save the script bellow as extension (.cs)

 

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

            }

        }

    }

}
 

Former users wrote on 1/22/2019, 3:51 PM

This script would be better if it were configured to delete the muted clips within a space selected by the user.

msa.binshihab wrote on 1/22/2019, 11:00 PM

For MAGIX Vegas Pro 14 or newer, save the script bellow as extension (.cs)

 

using ScriptPortal.Vegas;

public class EntryPoint

{

    public void FromVegas(Vegas app)

    {

        foreach (ScriptPortal.Vegas.Track currentTrack in app.Project.Tracks)

        {

            System.Collections.Generic.List<ScriptPortal.Vegas.TrackEvent> killSheet = new System.Collections.Generic.List<TrackEvent>();

            foreach (ScriptPortal.Vegas.TrackEvent currentEvent in currentTrack.Events)

            {

                if (currentEvent.Mute == true)

                    killSheet.Add(currentEvent);

            }

            foreach (ScriptPortal.Vegas.TrackEvent victim in killSheet)

            {

                currentTrack.Events.Remove(victim); // BLAM

            }

        }

    }

}
 

thank you ... thats worked