What is the easiest way to hide/show a GUI element under control of a script?

I want to create dynamic labels over a guitar fretboard like at this video: Steinberg MGuitar for Halion Part 1 - Solo & Chord Modes - YouTube

What is the easiest way to hide/show a GUI element under control of a script? And I’m planning to use a XY (probably 6 of them, for each string) to create these labels. So I would need hide and show XY cursors. Can it be done by means of a script? Thanks.

Do you mean the white dots over the fretboard or the menus that appear next to it in certain modes?

You can use stack and groups two show/hide certain elements. The stack can be connected to a script parameter so you can control it from the script.

Another option to hide certain elements is to use disable. Again you can connect it to a script parameter.

For the white dots over the fretboard I use on/off switches. Maybe not the best approach but it worked for me. Downside is it creates a lot of parameters… one for each fret on each string.