To work faster with a shortcut in scenes that autocook on any selection, like with Polyreduce or sims.
Below is just the color scheme part. Trying to use a method that sets a custom color scheme file inside the houdini.pref file under $HOME/Houdini20.0/ using 'hou.setPreference'
https://www.sidefx.com/docs/houdini/hom/hou/setPreference.html [www.sidefx.com]
(Since setting the default colors.scheme pref doesn't seem to change, I tried adding it as a custom pref, but can't tell from documentation if that would even overrule the default, or just creates a new custom pref completely unrelated to it)
The UI file is called 'UIManual.hcs' (labeled Houdini Manual) located under $HOME/Houdini20.0/config as well as the Houdini install config folder just in case.
While it sets the houdini.pref file to custom.colors.scheme correctly, for some reason it just won't update the Houdini UI.
Any idea, or perhaps a better approach?
I have limited coding experience by the way, and this is my first Python.
import hou hou.refreshPreferences() color_scheme = hou.getPreference("colors.scheme") hou.refreshPreferences() hou.setPreference("custom.colors.scheme", "Houdini Manual") hou.refreshPreferences()