Hidden project settings?

KVRist
39 posts since 13 Aug, 2016

Post Wed Dec 26, 2018 12:18 pm

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?

User avatar
KVRAF
2742 posts since 13 May, 2004

Post Thu Dec 27, 2018 2:29 am

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.

KVRist

Topic Starter

39 posts since 13 Aug, 2016

Post Thu Dec 27, 2018 8:15 am

Thanks!

User avatar
KVRist
125 posts since 12 Apr, 2020

Post Fri Jan 15, 2021 3:37 pm

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

User avatar
KVRian
918 posts since 26 Oct, 2005 from Canada City

Post Fri Jan 15, 2021 6:38 pm

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.

User avatar
KVRist
125 posts since 12 Apr, 2020

Post Sat Apr 17, 2021 9:35 pm

Dozius wrote:
Fri Jan 15, 2021 6:38 pm
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

User avatar
KVRAF
2742 posts since 13 May, 2004

Post Sun Apr 18, 2021 12:27 am

Kirkwood West wrote:
Sat Apr 17, 2021 9:35 pm
Dozius wrote:
Fri Jan 15, 2021 6:38 pm
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 :-)

User avatar
KVRAF
8356 posts since 4 Jan, 2017 from Warsaw, Poland

Post Sun Apr 18, 2021 12:34 am

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

Return to “Controller Scripting”