Select All Events After Cursor

video777 wrote on 2/22/2020, 6:01 PM

Hi. I just upgraded from Sony Vegas Pro 11 (just limping along) to the Magix Vegas Pro Suite 17. I had a script called "SelectEventsAfterCursor.cs" that did this exact thing. Is there anything like it for VPS 17? Thank you.

Here are the contents of the script with the original author's name:/**
 * This script will select all events after the cursor
 * 
 * Written By: Edward Troxel
 * Modified: 10-23-2007
 **/

using System;
using Sony.Vegas;
public class EntryPoint
{
    Vegas myVegas;
    
    public void FromVegas(Vegas vegas)
    {
        myVegas = vegas;

    foreach (Track track in myVegas.Project.Tracks)
    {
        foreach(TrackEvent evnt in track.Events)
        {
            evnt.Selected = false;
            if (evnt.Start >= myVegas.Cursor)
            {
                evnt.Selected = true;
            }
        }
    }

    }

    
}

Comments

fr0sty wrote on 2/22/2020, 6:55 PM

See if this helps: https://www.focusonvegas.com/somaconverter-sony-magix-vegas-pro-script-converter/

video777 wrote on 2/22/2020, 7:21 PM

See if this helps: https://www.focusonvegas.com/somaconverter-sony-magix-vegas-pro-script-converter/

Thank you so much. That worked perfectly. I plan on giving a donation to this person for creating such a helpful tool. I rely heavily on this feature in my editing. I appreciate the fast response.

JN- wrote on 2/22/2020, 7:23 PM

@video777 That was added from VP16 onwards ...

It's available under the Edit tab, or right click any event ...

"[Moderator Addition: A "Select All After Cursor" command has been introduced, allowing the user to select all events under and after the current cursor position, on either all tracks or selected tracks.]"

Last changed by JN- on 2/22/2020, 7:27 PM, changed a total of 1 times.

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

wwaag wrote on 2/22/2020, 7:40 PM

There are also three Happy Otter free scripts available that select: (1) events after the cursor; (2) events under the cursor; and (3) events before the cursor. There is also a text script conversion tool between Sony and Vegas on the same page. They can all be found at https://tools4vegas.com/library/.

Forgot to add there is also a script in the package that select all events that contain markers.

Last changed by wwaag on 2/22/2020, 7:41 PM, changed a total of 1 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

video777 wrote on 2/22/2020, 9:45 PM

@video777 That was added from VP16 onwards ...

It's available under the Edit tab, or right click any event ...

"[Moderator Addition: A "Select All After Cursor" command has been introduced, allowing the user to select all events under and after the current cursor position, on either all tracks or selected tracks.]"

Thanks. I see it now. It's not as efficient as pressing a hot key combination. I select all tracks to the end a lot. I appreciate the tip.

video777 wrote on 2/22/2020, 9:46 PM

There are also three Happy Otter free scripts available that select: (1) events after the cursor; (2) events under the cursor; and (3) events before the cursor. There is also a text script conversion tool between Sony and Vegas on the same page. They can all be found at https://tools4vegas.com/library/.

Forgot to add there is also a script in the package that select all events that contain markers.

Thank you. What a cool resource.

Oceloth wrote on 10/21/2023, 6:09 PM

@video777 That was added from VP16 onwards ...

It's available under the Edit tab, or right click any event ...

"[Moderator Addition: A "Select All After Cursor" command has been introduced, allowing the user to select all events under and after the current cursor position, on either all tracks or selected tracks.]"

I wonder why there isnt a keybind for it.

Robert Johnston wrote on 10/21/2023, 8:00 PM

@Oceloth @video777 CTRL-SHIFT-END and then SHIFT-Q. The first one extends the loop region to the end, the second selects the region. Would that help?

Intel Core i7 10700K CPU @ 3.80GHz (to 4.65GHz), NVIDIA GeForce RTX 2060 SUPER 8GBytes. Memory 32 GBytes DDR4. Also Intel UHD Graphics 630. Mainboard: Dell Inc. PCI-Express 3.0 (8.0 GT/s) Comet Lake. Bench CPU Multi Thread: 5500.5 per CPU-Z.

Vegas Pro 21.0 (Build 108) with Mocha Vegas

Windows 11 not pro

jetdv wrote on 10/22/2023, 7:20 AM

@video777 That was added from VP16 onwards ...

It's available under the Edit tab, or right click any event ...

"[Moderator Addition: A "Select All After Cursor" command has been introduced, allowing the user to select all events under and after the current cursor position, on either all tracks or selected tracks.]"

I wonder why there isnt a keybind for it.

@Oceloth, there can be. You can assign the script to a keypress.

 

jetdv wrote on 10/22/2023, 7:22 AM

And, in this case, to get it to work on newer version, you simply change:

using Sony.Vegas;

to

using ScriptPortal.Vegas;

That's literally all it takes to get it working in the Magix versions of VEGAS.