How to toggle visibility of plugin window?
-
- KVRist
- Topic Starter
- 59 posts since 4 Apr, 2011
v1.1 added the device.isWindowOpen() method... but I can't find a way to toggle the visibility of the plugin window from a controller script.
Has anybody figured this out?
Thanx and happy turkey day!
Has anybody figured this out?
Thanx and happy turkey day!
- KVRian
- 1372 posts since 28 Dec, 2012 from Meredith NH
marcora wrote:v1.1 added the device.isWindowOpen() method... but I can't find a way to toggle the visibility of the plugin window from a controller script.
Has anybody figured this out?
Thanx and happy turkey day!
Code: Select all
cursorDevice.isWindowOpen ().toggle ();
Michael Schmalle
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine
- KVRian
- 1372 posts since 28 Dec, 2012 from Meredith NH
Yes, they do say it returns a value but... It returns a BooleanValue!marcora wrote:It actually works!!! Thank you very much. Go figure, the API docs state that isWindowOpen() returns a boolean
Which a BooleanValue can toggle(), set(), and have addValueObserver (Callable callback) to listen to the value change.
What this means is you can toggle on/off like you are doing but with set() you can explicitly set the value true/false if you are tracking the value change with the value observer.
Mike
Michael Schmalle
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine