Old 10-10-2018, 05:15 AM   #1
AndrewGl
Human being with feelings
 
Join Date: Aug 2009
Posts: 33
Default Macros instead of mouse work?

Hello,

Standard Reaper action list does not contain elementary actions, which can easily be activated by mouse. For example, given several created tracks I would like to be able to arm-disarm any of them using some custom actions.

Probably I could program this using some external mouse recorder (learn mouse actions, call them using macros). Is there a simpler way to enhance the basic action list?

Thanks
Andrew
AndrewGl is offline   Reply With Quote
Old 10-10-2018, 05:27 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,195
Default

Track: Toggle record arm for selected tracks
Xenakios/SWS: Set selected tracks record armed
Xenakios/SWS: Set selected tracks record unarmed

?
cfillion is online now   Reply With Quote
Old 10-11-2018, 05:14 AM   #3
AndrewGl
Human being with feelings
 
Join Date: Aug 2009
Posts: 33
Default

Quote:
Originally Posted by cfillion View Post
Track: Toggle record arm for selected tracks
Xenakios/SWS: Set selected tracks record armed
Xenakios/SWS: Set selected tracks record unarmed

?
Looks good, thanks. What I still miss is commands for track selection/unselection without affecting other tracks, e.g.

Select track <name>
or
Select track 01
Select track 02
Select track 03 etc.

and

Unselect track <name>
or
Unselect track 01
Unselect track 02
Unselect track 03 etc.,

where the figures refer to the track number from the top of the list of defined tracks. In this case I would be able to arm/disarm any subset of tracks using Reaper actions.

Still more interesting would be a simplified command-line access (through reaper actions) to the callback functions related to all screen controls accessible by the mouse. I tried to locate such functions in those available through EEL or Lua but got lost...

Last edited by AndrewGl; 10-11-2018 at 05:23 AM.
AndrewGl is offline   Reply With Quote
Old 10-11-2018, 05:33 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,339
Default

Quote:
Originally Posted by AndrewGl View Post
callback functions related to all screen controls accessible by the mouse. I tried to locate such functions in those available through EEL or Lua but got lost...
The scripting API has extremely limited callback function support and none of that deals with things like getting callbacks when Reaper GUI elements are clicked etc.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 10-11-2018, 05:37 AM   #5
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,195
Default

To arm or disable a specific track from a Lua script (track numbering is 0 based. 1 = arm, 0 = unarm):

Code:
reaper.CSurf_OnRecArmChange(reaper.GetTrack(0, 0), 1) -- arm track 1
reaper.CSurf_OnRecArmChange(reaper.GetTrack(0, 1), 1) -- arm track 2
reaper.CSurf_OnRecArmChange(reaper.GetTrack(0, 2), 0) -- unarm track 3

Last edited by cfillion; 10-11-2018 at 05:44 AM.
cfillion is online now   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 12:15 PM.


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