Comments

rs170a wrote on 8/27/2016, 8:31 AM

There may be an easier way but I click the first one, shift+click the last one and press Delete. Gone.

Mike

Paul-Fierlinger wrote on 8/27/2016, 8:49 AM

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.

Eagle Six wrote on 8/27/2016, 10:11 AM

Hi Paul,

How about a script.......

====================================================================

/**
 * This script will remove all Markers, Regions, CD Indices, CD Tracks, and Command Markers
 **/

Vegas.Project.Markers.Clear();

Vegas.Project.Regions.Clear();

Vegas.Project.CDIndices.Clear();

Vegas.Project.CDTracks.Clear();

Vegas.Project.CommandMarkers.Clear();

=====================================================================

I have it named as RemoveAllMarkerRegions.js

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.)

 

Last changed by Eagle Six on 8/27/2016, 10:14 AM, changed a total of 1 times.

System Specs......
Corsair Obsidian Series 450D ATX Mid Tower
Asus X99-A II LGA 2011-v3, Intel X99 SATA 6 Gb/s USB 3.1/3.0 ATX Intel Motherboard
Intel Core i7-6800K 15M Broadwell-E, 6 core 3.4 GHz LGA 2011-v3 (overclocked 20%)
64GB Corsair Vengeance LPX DDR4 3200
Corsair Hydro Series H110i GTX 280mm Extreme Performance Liquid CPU Cooler
MSI Radeon R9 390 DirectX 12 8GB Video Card
Corsair RMx Series RM750X 740W 80 Plus Gold power pack
Samsung 970 EVO NVMe M.2 boot drive
Corsair Neutron XT 2.5 480GB SATA III SSD - video work drive
Western Digitial 1TB 7200 RPM SATA - video work drive
Western Digital Black 6TB 7200 RPM SATA 6Bb/s 128MB Cache 3.5 data drive

Bluray Disc burner drive
2x 1080p monitors
Microsoft Window 10 Pro
DaVinci Resolve Studio 16 pb2
SVP13, MVP15, MVP16, SMSP13, MVMS15, MVMSP15, MVMSP16

Paul-Fierlinger wrote on 8/27/2016, 10:21 AM

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?

john_dennis wrote on 8/27/2016, 10:23 AM

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.  

Paul-Fierlinger wrote on 8/27/2016, 10:51 AM

Fantastic, John; an already built-in feature. I think this will turn out to be what I was hoping for.

Eagle Six wrote on 8/27/2016, 12:55 PM

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.

System Specs......
Corsair Obsidian Series 450D ATX Mid Tower
Asus X99-A II LGA 2011-v3, Intel X99 SATA 6 Gb/s USB 3.1/3.0 ATX Intel Motherboard
Intel Core i7-6800K 15M Broadwell-E, 6 core 3.4 GHz LGA 2011-v3 (overclocked 20%)
64GB Corsair Vengeance LPX DDR4 3200
Corsair Hydro Series H110i GTX 280mm Extreme Performance Liquid CPU Cooler
MSI Radeon R9 390 DirectX 12 8GB Video Card
Corsair RMx Series RM750X 740W 80 Plus Gold power pack
Samsung 970 EVO NVMe M.2 boot drive
Corsair Neutron XT 2.5 480GB SATA III SSD - video work drive
Western Digitial 1TB 7200 RPM SATA - video work drive
Western Digital Black 6TB 7200 RPM SATA 6Bb/s 128MB Cache 3.5 data drive

Bluray Disc burner drive
2x 1080p monitors
Microsoft Window 10 Pro
DaVinci Resolve Studio 16 pb2
SVP13, MVP15, MVP16, SMSP13, MVMS15, MVMSP15, MVMSP16

Paul-Fierlinger wrote on 8/27/2016, 1:55 PM

AGH: I am told I don't have administrative privileges (I thought I had this behind me a long time ago) and have no idea where to set this straight.

Eagle Six wrote on 8/27/2016, 2:35 PM

Paul, when are you getting the administrative privileges error and what operating system are you on?  What is 'AGH' maybe 'Ain't Gonna Happen'?!?

Best Regards.....George

System Specs......
Corsair Obsidian Series 450D ATX Mid Tower
Asus X99-A II LGA 2011-v3, Intel X99 SATA 6 Gb/s USB 3.1/3.0 ATX Intel Motherboard
Intel Core i7-6800K 15M Broadwell-E, 6 core 3.4 GHz LGA 2011-v3 (overclocked 20%)
64GB Corsair Vengeance LPX DDR4 3200
Corsair Hydro Series H110i GTX 280mm Extreme Performance Liquid CPU Cooler
MSI Radeon R9 390 DirectX 12 8GB Video Card
Corsair RMx Series RM750X 740W 80 Plus Gold power pack
Samsung 970 EVO NVMe M.2 boot drive
Corsair Neutron XT 2.5 480GB SATA III SSD - video work drive
Western Digitial 1TB 7200 RPM SATA - video work drive
Western Digital Black 6TB 7200 RPM SATA 6Bb/s 128MB Cache 3.5 data drive

Bluray Disc burner drive
2x 1080p monitors
Microsoft Window 10 Pro
DaVinci Resolve Studio 16 pb2
SVP13, MVP15, MVP16, SMSP13, MVMS15, MVMSP15, MVMSP16

Paul-Fierlinger wrote on 8/27/2016, 2:53 PM

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.

Eagle Six wrote on 8/27/2016, 5:31 PM

Hi Paul, sorry I can't help with Windows 10, I'm still on Windows 7.  I have read many are having problems with the anniversary update.

System Specs......
Corsair Obsidian Series 450D ATX Mid Tower
Asus X99-A II LGA 2011-v3, Intel X99 SATA 6 Gb/s USB 3.1/3.0 ATX Intel Motherboard
Intel Core i7-6800K 15M Broadwell-E, 6 core 3.4 GHz LGA 2011-v3 (overclocked 20%)
64GB Corsair Vengeance LPX DDR4 3200
Corsair Hydro Series H110i GTX 280mm Extreme Performance Liquid CPU Cooler
MSI Radeon R9 390 DirectX 12 8GB Video Card
Corsair RMx Series RM750X 740W 80 Plus Gold power pack
Samsung 970 EVO NVMe M.2 boot drive
Corsair Neutron XT 2.5 480GB SATA III SSD - video work drive
Western Digitial 1TB 7200 RPM SATA - video work drive
Western Digital Black 6TB 7200 RPM SATA 6Bb/s 128MB Cache 3.5 data drive

Bluray Disc burner drive
2x 1080p monitors
Microsoft Window 10 Pro
DaVinci Resolve Studio 16 pb2
SVP13, MVP15, MVP16, SMSP13, MVMS15, MVMSP15, MVMSP16

Paul-Fierlinger wrote on 8/27/2016, 5:41 PM

I understand and actually your answer makes me feel a little better about myself. 

EDIT: I searched online, found the answer and have your script in my Tools list. Many thanks, George.

Chienworks wrote on 8/27/2016, 5:57 PM

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.

 

Paul-Fierlinger wrote on 8/27/2016, 6:24 PM

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!