View Single Post
Old 01-27-2018, 09:20 AM   #1
Human being with feelings
_Stevie_'s Avatar
Join Date: Oct 2017
Posts: 3,683
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 wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote