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