Greetings wizards!
Two things I'd like to bring up:
1) The Viewport Color Editor doesn't seem to want to load from the help files. How can this be fixed/loaded?
2) Is there a way I can add a new preset to the Color Scheme list when going to Display Options --> Background so I don't have to overwrite the default schemes?
Viewport Color Editor not loading
2484 10 1-
- frescalus
- Member
- 25 posts
- Joined: 8月 2012
- オフライン
-
- dtempcyer
- Member
- 326 posts
- Joined: 1月 2013
- オフライン
Hi,
1) A workaround for this could be to use a module that loads examples from the help.
2) I've thought about this too but there doesn't seem to be a way to add new colour schemes.
1) A workaround for this could be to use a module that loads examples from the help.
__import__('houdinihelp').load_example("/examples/python_panels/viewportcoloreditor.pypanel")
2) I've thought about this too but there doesn't seem to be a way to add new colour schemes.
Edited by dtempcyer - 2024年12月7日 04:37:32
-
- frescalus
- Member
- 25 posts
- Joined: 8月 2012
- オフライン
alexwheezy
Hi,
1) A workaround for this could be to use a module that loads examples from the help.__import__('houdinihelp').load_example("/examples/python_panels/viewportcoloreditor.pypanel")
2) I've thought about this too but there doesn't seem to be a way to add new colour schemes.
Hi Alex,
I can't seem to use that command. I've tried it in the Python Shell and the Python Source Editor, nothing happens.
-----Neil
-
- dtempcyer
- Member
- 326 posts
- Joined: 1月 2013
- オフライン
-
- frescalus
- Member
- 25 posts
- Joined: 8月 2012
- オフライン
alexwheezy
__import__('houdinihelp').load_example("/examples/python_panels/viewportcoloreditor.pypanel")
Odd, nothing is popping up in the shell when I hit apply.
I did, however, get it to work in the panel so I think I'm good...just odd that I can't get a separate window to pop up.
Thanks for the help!
-----Neil
-
- frescalus
- Member
- 25 posts
- Joined: 8月 2012
- オフライン
-
- dtempcyer
- Member
- 326 posts
- Joined: 1月 2013
- オフライン
This tool appeared earlier than other schemas and if you open the source code directly in the toolbar you can see how it adds these schemas.
self.mySchemeMenu.addItem("Light", "config/3DSceneColors.light") self.mySchemeMenu.addItem("Dark", "config/3DSceneColors.dark") self.mySchemeMenu.addItem("Grey", "config/3DSceneColors.bw")
Edited by dtempcyer - 2024年12月7日 11:27:24
-
- frescalus
- Member
- 25 posts
- Joined: 8月 2012
- オフライン
alexwheezy
__import__('houdinihelp').load_example("/examples/python_panels/viewportcoloreditor.pypanel")
Thank you, and I do see that and it lets me add items there, hopefully a dev could respond on how to get it in the Display Options list on the background tab. I've been searching files, but I can't seem to find anything that relates to that.
The documents show a module hou.viewportColorSchemes, so I'm curious where this lives.
Edited by frescalus - 2024年12月9日 08:54:52
-----Neil
-
- dtempcyer
- Member
- 326 posts
- Joined: 1月 2013
- オフライン
-
- frescalus
- Member
- 25 posts
- Joined: 8月 2012
- オフライン
-
- toonafish
- Member
- 579 posts
- Joined: 3月 2014
- オフライン
The Color Panel didn't open here as well when pressing "Load".
But I figured out a way, so just in case anyone else runs into this:
Open a new floating panel and set its type to "...misc>Python Panel". Then you can select the "viewport color editor" with the dropdown menu at the top, but only after you hit the "Load" button in the help files. Seems this code is not loaded by default somehow.
With this color panel you can edit the viewport colors, and if you don't want to restart Houdini after every edit, open the Display Options panel as well and toggle the Color Scheme after every save in the Color Editor.
I noticed that the editing works in a strange way, one would expect this to be straight forward but it seems all the currently active fields are adjusted when changing a single specific color. So you have to disable all the fields you already adjusted , before adjusting the next color.
But I figured out a way, so just in case anyone else runs into this:
Open a new floating panel and set its type to "...misc>Python Panel". Then you can select the "viewport color editor" with the dropdown menu at the top, but only after you hit the "Load" button in the help files. Seems this code is not loaded by default somehow.
With this color panel you can edit the viewport colors, and if you don't want to restart Houdini after every edit, open the Display Options panel as well and toggle the Color Scheme after every save in the Color Editor.
I noticed that the editing works in a strange way, one would expect this to be straight forward but it seems all the currently active fields are adjusted when changing a single specific color. So you have to disable all the fields you already adjusted , before adjusting the next color.
Edited by toonafish - 2026年3月14日 09:47:48
-
- Quick Links


