Search - User list
Full Version: Viewport Color Editor not loading
Root » Technical Discussion » Viewport Color Editor not loading
frescalus
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?
dtempcyer
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.
frescalus
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.
dtempcyer
frescalus
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.

It should work. Try opening the Python Panel additionally.
frescalus
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!
frescalus
The other thing that's odd is that it doesn't list all of the items in the drop down that are in the Display Options.
dtempcyer
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")
frescalus
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.
dtempcyer
This scheme can be found in the configuration files: $HFS/houdini/config/3DSceneColors.dg
frescalus
alexwheezy
This scheme can be found in the configuration files: $HFS/houdini/config/3DSceneColors.dg
Yeah, I know that...I'm talking about adding a new scheme to the list. I'm hoping someone from sidefx can say how to add to the list.
toonafish
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB