Page 1 of 1

Need help with scripting Reaper SWS Actions?

Posted: 29 Jan 2017 15:24
by tater01
Hello,
Ok, so I figured out how to map a Reaper SWS action from an OSC button! Great! Totally stoked about that! But, I can't get it fully functioning. It sends the SWS action twice, no matter what I try. So, I'm using this action to trigger the SWS action: if(x==1){oscout(0,'/action/str','_S&M_MIDI_INPUT_CH1')};

Problem is, its sending it twice. So Reaper is performing the action twice. How can I make it send this action only once?
I've tried changing expression to only on the up arrow. I've tried changing reaperosc file to think its a toggle or a pad. No luck.

Also, I'm not a programmer, so if anyone could help me make a multi switch that would do this also?
Here is an example of the button and script:
SWS Examples.jzml
SWS example button
(2.35 KiB) Downloaded 77 times
There's an example of a working SWS button, but it sends twice. And a multi switch example if someone could show me how to script a oscout function to each button.

Thanks!