How to toggle visibility of plugin window?

Post Reply New Topic
RELATED
PRODUCTS

Post

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! :wink:

Post

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! :wink:

Code: Select all

cursorDevice.isWindowOpen ().toggle ();
Mike
Michael Schmalle
http://www.teotigraphix.com
Surfing on sine waves

Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine

Post

It actually works!!! :) Thank you very much. Go figure, the API docs state that isWindowOpen() returns a boolean

Post

marcora wrote:It actually works!!! :) Thank you very much. Go figure, the API docs state that isWindowOpen() returns a boolean
Yes, they do say it returns a value but... It returns a BooleanValue! :)

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

Post

Super! Thanks for the explanation.

Post Reply

Return to “Controller Scripting”