Hidden project settings?
-
- KVRist
- Topic Starter
- 39 posts since 13 Aug, 2016
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?
- KVRAF
- 4169 posts since 13 May, 2004
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.
It took me some time to find out that all Settings actually implement Setting, which provides you several additional functions.
- KVRist
- 325 posts since 12 Apr, 2020
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
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
- KVRian
- 927 posts since 26 Oct, 2005 from Canada City
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.
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.
Code: Select all
((Setting)actual_data).hide();
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.
- KVRist
- 325 posts since 12 Apr, 2020
Thanks for the heads up on that.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.
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.Code: Select all
((Setting)actual_data).hide();
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.
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
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
- KVRAF
- 4169 posts since 13 May, 2004
Yes, I documented all known bugs here: https://github.com/teotigraphix/Framewo ... /issues/73Kirkwood West wrote: ↑Sun Apr 18, 2021 5:35 amThanks for the heads up on that.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.
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.Code: Select all
((Setting)actual_data).hide();
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.
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.
Feel free to complain to Bitwig as well, so it is not only me
- Banned
- 11467 posts since 4 Jan, 2017 from Warsaw, Poland