Page 1 of 1
Global variables/scripts in the desktop editor
Posted: 02 Mar 2026 03:17
by batmundo
I was going to post this in the feedback forum but I can't seem to post there so I'm asking this here instead:
In the desktop editor, would it be possible group variables and scripts into a collapsible folder? It's a bit unwieldy in the current form, as I have a lot of globals going on. The app itself already has them grouped into a "Globals" in the settings, so some kind of similar organizational structure for desktop would be nice...
Re: Global variables/scripts in the desktop editor
Posted: 07 Mar 2026 22:37
by midikinetics
You can use a Container widget and hide it.
1) Create a container widget by dragging it into the project
2) Create a script on it, set the execution mode to On Load and write the following to hide it in the UI:
Code: Select all
show(getobject(), 0); // hides the container
3) Delete the script. It was only needed to hide it, and it will remain hidden until you call `show` with a 1 as the second argument.
Code: Select all
show(getobject(), 1); // shows the container
Keep in mind that this will create a namespace. Your existing scripts will now have to call Object.Container.function().
I do this all the time to group functions together into namespaces. In fact I consider this best practice.
Code: Select all
GraphicsHelpers.resetAllGraphics();
MixerHelpers.resetAllFaders();
SongHelpers.loadSong(1);
Re: Global variables/scripts in the desktop editor
Posted: 11 Mar 2026 05:47
by batmundo
Oh ok, yeah I had considered doing something like this, I was just wondering since the iPad app already had 'em grouped. I tried it with a blank interface page, but being able to hide it like this is much cleaner. Thanks!