script to remove all markers? Luxo wrote on 6/1/2003, 5:08 PM Unless I'm missing it, there's no built-in command to remove all markers from a project. If any script gurus have the time, I'd love to see such a thing.... Back to post
Comments roger_74 wrote on 6/1/2003, 5:26 PM Here's a quick one: import SonicFoundry.Vegas; while (Vegas.Project.Markers.Count != 0) Vegas.Project.Markers.RemoveAt(0); It removes every marker of any kind. (edit - no it doesn't... just markers and regions) jetdv wrote on 6/1/2003, 6:12 PM You don't need a script to do this. Just right-click above the timeline, choose Markers/Regions, and then select Delete All. Luxo wrote on 6/1/2003, 6:37 PM You rule jetdv. :-) roger_74 wrote on 6/1/2003, 7:06 PM I thought the script would delete Command markers and CD-Track markers as well. But it does not... so my script was pretty useless ;-) SonyPJM wrote on 6/2/2003, 9:22 AM Just in case you ever do want to do this via script, try this: Vegas.Project.Markers.Clear(); Vegas.Project.Regions.Clear(); Vegas.Project.CDIndices.Clear(); Vegas.Project.CDTracks.Clear(); Vegas.Project.CommandMarkers.Clear(); roger_74 wrote on 6/2/2003, 11:53 AM Ah, of course. Must be the unusual heat here... ;-) 1