Ha! That never worked for me, but since you confirmed that there is a way, this time I kept Shift pressed while right clicking for a menu and selected Delete and this worked. Thanks for the lead.
Place it in the 'Script Menu' folder in c:\Program Files\Sony\Vegas Pro 13\Script Menu (or wherever the script menu folder is on your system for your Vegas Pro version).
Then Customize your top tool bar and add it. This makes removing regions a '1 click' deal.
(NOTE: You can remove any lines from the script you do not want the script to remove, such as "Vegas.Project.CDIndices.Clear();" Take that line out and the script will not remove the CD tracks.)
that sounds interesting and handy indeed, George, and since I am not familiar with adding scripts to Vegas I appreciate your directions -- but where are the scripts?
On the Vegas Menu select View / Window / Edit Details (or Alt + 6).You can choose to show markers, regions or other characteristics and delete them individually or all at once.
that sounds interesting and handy indeed, George, and since I am not familiar with adding scripts to Vegas I appreciate your directions -- but where are the scripts?
Hi Paul,
'Tools' > 'Scripting', will display all the current scripts which come with your Vegas Pro version. Select the script you wish to run.
To add the RemoveALLMarkerRegions.js script from my previous post.....
Copy the script code from my previous post (everything between the '====' lines. Paste this into Windows Notepad (a program in 'Start' > 'All Programs' > 'Accessories' > 'Notepad'. Save this file with the full name 'RemoveALLMarkerRegions.js' Important Note: Notepad default to the .txt extension, so when you name this file to 'Save As' include the extension '.js' and change the 'Save as type:' to 'All Files (*.*)'.
You will need to find the 'Script Menu' folder, this is where all the functional scripts are listed. Mine is in 'C:\Program Files\Sony\Vegas Pro 13\Script Menu'. Note: If you look at the current scripts in Vegas Pro ('Tools' > 'Scripting' write down a few of the titles, then as you are searching for the 'Script Menu' folder, you should find those same file names within the correct folder. They will either have a '.js. file name extension, or '.cs'.
Once you have found the 'Script Menu' folder, that is the place to save the 'RemoveAllMarkRegions.js' script.
It's probably a good idea to shut down Vegas, then start it back up (although I don't think this is necessary). Then go 'Tools' > 'Scripting' > 'Rescan Script Menu Folder' the 'Tools' sub-menu will close after scanning, only takes a second. Then go 'Tools' > 'Scripting' and you should have the 'RemoveAllMarkerRegions' displayed. Simply click on it and watch it do it's job.
To make it a '1-click' operation, add this script to the top tool bar. 'Options' > 'Customize Toolbar...'. Find and select the script in the left display under 'Available Toolbar Buttons:' and then click on the 'Add' button. This will move the 'RemoveAllMarkerRegions' script to the right display under 'Current Toolbar Buttons:', and it will now appear as an option on your top toolbar.
Now 1 click to get the script to work! It's a little work to set this up, but once completed it an easy time saver.
AGH is Oy Veys me! I'm on Windows 10 Anneversary, which I believe is the culprit. I get this error when I try to paste your script into Sony V 13's Script Menu folder. Thanks for giving me so much of your time for these elementals.
Even easier yet ... right-mouse-button click *BETWEEN* any marker/region flags, in empty space. From the popup context menu pick Markers/Regions, and then Delete all. If you have a selection set you can also delete all within the selection.
It may be a little tricky the first time you try it. You have to be inline horizontally with the marker flags. If you're above or below that thin range then you won't get the right context menu.
That was indeed easy Chienworks! Got it on the first try. But I'm glad I have the RemoveALLMarkerRegions too, because it holds within other functions. You guys are super!