Hidden project settings?

Post Reply New Topic
RELATED
PRODUCTS

Post

It's possible to create project-specific user settings accessible via the Studio I/O panel for a controller script using the DocumentState class, but is it possible to create invisible settings that keep track of the controller state on a project by project basis?

Post

Yes, you can use the "hide ()" function on the Setting.

It took me some time to find out that all Settings actually implement Setting, which provides you several additional functions.

Post

Thanks!

Post

settings.png
There must be some other magic way to get hide() to appear on this class. i'm dying to know here lol.
You do not have the required permissions to view the files attached to this post.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Just cast it to Setting and it will work. I don't see this inheritance anywhere in the public API though, so I expect this could change/break at any time without notice.

Code: Select all

((Setting)actual_data).hide();
Something to mention. I couldn't find a way to hide the category, so if you have a whole section of hidden parameters the category will still show up.

Also note that when you rebuild your extension, it appears you also need to reload the active project for the document state to be reflected correctly in the I/O panel.

Post

Dozius wrote: Sat Jan 16, 2021 2:38 am Just cast it to Setting and it will work. I don't see this inheritance anywhere in the public API though, so I expect this could change/break at any time without notice.

Code: Select all

((Setting)actual_data).hide();
Something to mention. I couldn't find a way to hide the category, so if you have a whole section of hidden parameters the category will still show up.

Also note that when you rebuild your extension, it appears you also need to reload the active project for the document state to be reflected correctly in the I/O panel.
Thanks for the heads up on that.

The whole document state thing is pretty flakey if you start changing the settings around. Many stale items with no way to clear them out. Old documents with stuff like this i tend to copy all the content out of the project and make a new one.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Kirkwood West wrote: Sun Apr 18, 2021 5:35 am
Dozius wrote: Sat Jan 16, 2021 2:38 am Just cast it to Setting and it will work. I don't see this inheritance anywhere in the public API though, so I expect this could change/break at any time without notice.

Code: Select all

((Setting)actual_data).hide();
Something to mention. I couldn't find a way to hide the category, so if you have a whole section of hidden parameters the category will still show up.

Also note that when you rebuild your extension, it appears you also need to reload the active project for the document state to be reflected correctly in the I/O panel.
Thanks for the heads up on that.

The whole document state thing is pretty flakey if you start changing the settings around. Many stale items with no way to clear them out. Old documents with stuff like this i tend to copy all the content out of the project and make a new one.
Yes, I documented all known bugs here: https://github.com/teotigraphix/Framewo ... /issues/73

Feel free to complain to Bitwig as well, so it is not only me :-)

Post

---
Music tech enthusiast
DAW, VST & hardware hoarder
My "music": https://soundcloud.com/antic604

Post Reply

Return to “Controller Scripting”