View Single Post
Old 01-27-2018, 09:20 AM   #1
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default Does toggle button work with a custom script?

Hey all,

I have a Steinberg CMC-CH and I'm just diving into OSCIIBot.
So far, I am able to turn on and off the light of a button

But before I continue, here the following info:

- there is an "open VST instrument" button on the device
- I have a script, that looks for the first VST instrument on a track and toggles open and close of the GUI


I would like to know if this is possible:

- when I select a track, that shows the VST instrument GUI, I would like the "open VST instrument" button light turned on. And when I press the button, the GUI should disappear and turn off the light as well.

Now, I'm not quite sure, if this can be achieved. Does my LUA script need a toggle, so that Reaper can send a "VST instrument is not showing"?
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote