Old 11-29-2020, 04:42 PM   #1
babag
Human being with feelings
 
Join Date: Nov 2009
Posts: 2,232
Default lua equivalent of esc key to remove time select?

i need to add a line of lua to a script that will turn off the time selection, just as the esc key does by keyboard. have found a lot about adding and removing things within a time selection as well as defining a time selection but nothing on how to get rid of one. i'm sure it's something incredibly simple like setting a parameter to 'false' or something but haven't found it. can anyone post such a line here, please?

thanks,
babag
babag is offline   Reply With Quote
Old 11-29-2020, 06:02 PM   #2
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

reaper.GetSet_LoopTimeRange(true, false, 0, 0, false)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 11-29-2020, 07:45 PM   #3
babag
Human being with feelings
 
Join Date: Nov 2009
Posts: 2,232
Default

thanks amagalma!
babag is offline   Reply With Quote
Old 11-30-2020, 12:59 AM   #4
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

You're welcome!


If you are feeling lazy you can even set it like this:
reaper.GetSet_LoopTimeRange(1, 0, 0, 0, 0)
(1 = true, 0 = false)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.