Files
/
Amely Suncroll Auto Aim Item 2.0 (toggle).lua
Latest commit
41 lines (29 loc) · 1.31 KB
/
Amely Suncroll Auto Aim Item 2.0 (toggle).lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--[[
ReaScript Name: Auto Aim Item (toggle)
Instructions: Just open it with Actions - New action - Load ReaScript
Author: Amely Suncroll
REAPER: 6+ (maybe less)
Extensions: none
Version: 2.0
About: An exact copy of the Auto Aim Midi 2.0 script, but applied to items.
The kit consists of two components - the "main" and the so-called "switch", or "toggle".
When you run the "main", it starts running in the background, while the "toggle" at this time
changes the cursor binding of the selected item to its beginning or end.
Once you're done with your work, simply turn off the main part of the script from the background.
Donations:
https://www.paypal.com/paypalme/suncroll
Support:
https://t.me/yxo_composer_support
amelysuncroll@gmail.com
]]--
local main_script_identifier = "_MyScriptToggle"
local mode_identifier = main_script_identifier .. "_Mode"
function ToggleCursorBindingMode()
local currentMode = reaper.GetExtState(main_script_identifier, mode_identifier)
if currentMode == "End" then
reaper.SetExtState(main_script_identifier, mode_identifier, "Start", false)
else
reaper.SetExtState(main_script_identifier, mode_identifier, "End", false)
end
end
ToggleCursorBindingMode()