Suggestion: Key Stroke for Collapse Loop/Selection ON/OFF . . please.

Grazie wrote on 1/24/2023, 9:53 AM

I'm often needing to navigate to this part of the Prefs just to do this one simple action, and, whilst doing this gets me completely separated/away from my focus on my immediate narrative attention.

I've asked for this before now.

Comments

jetdv wrote on 1/24/2023, 9:59 AM

A script cannot turn this function on or off (unless it does something it's not supposed to do). Now a script *CAN* remove the selection area on the timeline. But that would be different than turning this option on or off.

You can save this as "Collapse Loop Region.cs" and run this script any time. It will change the length of the selection and loop region area to "0" but it is NOT the same as clicking somewhere on the timeline and "not getting a selection area by clicking at this spot on the timeline".

using ScriptPortal.Vegas; 

public class EntryPoint 
{
    public void FromVegas(Vegas vegas)
    {
        vegas.Transport.LoopRegionStart = vegas.Transport.CursorPosition;
        vegas.Transport.LoopRegionLength = Timecode.FromFrames(0);
        vegas.Transport.SelectionStart = vegas.Transport.CursorPosition;
        vegas.Transport.SelectionLength = Timecode.FromFrames(0);
    } 
}

That will make the selection area go to the cursor position and then collapse it to no length.

Grazie wrote on 1/24/2023, 10:06 AM

I’ve got this mapped to my Contour Shuttle Pro, works like a dream! Thanks Edward.

DMT3 wrote on 1/24/2023, 10:15 AM

You can also just hit the I and O key without moving cursor.

J-Toresen wrote on 1/24/2023, 10:32 AM

@DMT3 Thank you!

Jøran Toresen

Grazie wrote on 1/24/2023, 12:12 PM

You can also just hit the I and O key without moving cursor.


@DMT3 - Yes, I see that, but Edward's script does something different. Give it a go -😉.

Last changed by Grazie on 1/24/2023, 12:12 PM, changed a total of 1 times.

Grazie

PC 10 64-bit 64gb * Intel Core i9 10900X s2066 * EVGA RTX 3080 XC3 Ultra 10GB - Studio Driver 528.24 * 4x16G CorsVengLPX DDR4 2666C16 * Asus TUF X299 MK 2


Cameras: Canon XF300 + PowerShot SX60HS Bridge

Musicvid wrote on 1/24/2023, 1:22 PM

I've needed this for years!

Grazie wrote on 1/27/2023, 11:12 AM

OMG! Been using this all day.

relaxvideo wrote on 1/29/2023, 1:19 AM

Why do you need this function on/off, can you explain?
I edit with Vegas since 4.0, hope i can learn :)

Grazie wrote on 1/29/2023, 2:07 AM

@relaxvideo:

I edit with Vegas since 4.0, hope i can learn :)

Yes, you’re one of the knowledgable VegHeads here!

Why do you need this function on/off, can you explain?

Well, the collapsed Cursor always/often is in the wrong place where I want the Cursor to be. Using Edward’s Script gets what I want. OK, what can I suggest 🤔…? Yeah, I know, try Edward’s Script and if it doesn’t add flexibility to the way you edit, then forget it.

relaxvideo wrote on 1/29/2023, 2:12 AM

Sorry, my english is far from perfect, but that "VegHeads" is a sarcasm to me or the opposite?

I will try the script, thanks

Grazie wrote on 1/29/2023, 2:22 AM

Sorry, my english is far from perfect, but that "VegHeads" is a sarcasm to me or the opposite?

@relaxvideo - I’m a VegHead too! I’ve spent 23 years with our favourite NLE. I’m obsessed and passionate about the software and I am fortunate to be part of the Team that daily delivers their own videos for whatever creative purposes they choose.

jetdv wrote on 1/29/2023, 7:38 AM

@relaxvideo, while there a multiple uses for the script, a big one is using it right before you render. If you have the "render loop region only" option checked in the render box, running this script first will get rid of the loop region so that it will render the entire project. Of course, don't run it if you really did only want to render the smaller portion.