Delete Marker - is there a keyboard shortcut?

gary-o wrote on 7/21/2020, 12:41 AM

Is there a way to delete a marker at the current cursor position using a keyboard shortcut? (Or do nothing if there isn't one?)

There doesn't seem to be a command to delete a marker at current position on the timeline, or I could create a shortcut with Customize Keyboard..

So far the only way I can see is to right-click on the marker and then press D (for delete).

Any ideas or suggestions? Do I need a script?

Thanks

Comments

jetdv wrote on 7/21/2020, 7:54 AM

Gary, I believe you would need a script and then assign that script to a keypress. The script could then delete any markers if one existed under the cursor. In fact, the Delete Markers tool in Excalibur will do that if you have it set to selection area only. You would also need Vegas set to "collapse loop region". Then you could add the individual "Delete Markers" tool to a keypress and it will delete any marker under the cursor.

Dexcon wrote on 7/21/2020, 8:19 AM

I am not sure where the 'saving' is going to be. jetdv's approach still requires the user to at the minimum select a selection area before hitting the appropriate script key. It still seems to be at least a 2 step process (unless multiple markers are involved) which seems to me to be more complicated than simply 'highlighting the marker and hit D'. I've not found that an onerous problem myself.

Last changed by Dexcon on 7/21/2020, 8:21 AM, changed a total of 1 times.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

Marco. wrote on 7/21/2020, 8:40 AM

The "Delete" key works for markers if you enabled the marker tool before (on the upper right corner of the timeline). Though this isn't to delete a marker at the current cursor position but to delete selected markers.

Musicvid wrote on 7/21/2020, 6:32 PM

For several or selective marker deletions, I edit the Edit Details window.

Rich Parry wrote on 7/21/2020, 7:37 PM

Musicvid, thanks for the information, I never knew there was an Edit Details window. I often have to remove a bunch of markers that are no longer needed. Just one of many things I didn't know about VP after 10+ years of using it. Now I need to remember it is there 😀 Thanks again,

Rich

Last changed by Rich Parry on 7/21/2020, 7:38 PM, changed a total of 1 times.

CPU Intel i9-13900K Raptor Lake

Heat Sink Noctua  NH-D15 chromas, Black

MB ASUS ProArt Z790 Creator WiFi

OS Drive Samsung 990 PRO  NVME M.2 SSD 1TB

Data Drive Samsung 870 EVO SATA 4TB

Backup Drive Samsung 870 EVO SATA 4TB

RAM Corsair Vengeance DDR5 64GB

GPU ASUS NVDIA GeForce GTX 1080 Ti

Case Fractal Torrent Black E-ATX

PSU Corsair HX1000i 80 Plus Platinum

OS MicroSoft Windows 11 Pro

Rich in San Diego, CA

gary-o wrote on 7/24/2020, 10:57 AM

WWaag wrote me a simple little script as jetdev suggested above. Thank you.

using ScriptPortal.Vegas;

namespace DeleteMarkerAtCursor
{
    public class EntryPoint
    {
        public void FromVegas(Vegas vegas)
        {
            Timecode add = Timecode.FromMilliseconds(500);
            Timecode start = vegas.Transport.CursorPosition - add;
            Timecode end = vegas.Transport.CursorPosition + add;
            foreach (Marker m in vegas.Project.Markers)
            {
                if (m.Position >= start && m.Position <= end)
                {
                    vegas.Project.Markers.Remove(m);
                    goto endofcode;
                }
            }
            endofcode:;
        }
    }