Viewport Color Editor not loading

   730   9   0
User Avatar
Member
20 posts
Joined: 8月 2012
Offline
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?
Edited by frescalus - 2024年12月6日 12:43:30
-----Neil
User Avatar
Member
318 posts
Joined: 1月 2013
Online
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.
Edited by alexwheezy - 2024年12月7日 04:37:32
User Avatar
Member
20 posts
Joined: 8月 2012
Offline
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
User Avatar
Member
318 posts
Joined: 1月 2013
Online
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.
Edited by alexwheezy - 2024年12月7日 10:53:04

Attachments:
2024-12-07_18-51.png (146.4 KB)

User Avatar
Member
20 posts
Joined: 8月 2012
Offline
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
User Avatar
Member
20 posts
Joined: 8月 2012
Offline
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.
-----Neil
User Avatar
Member
318 posts
Joined: 1月 2013
Online
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 alexwheezy - 2024年12月7日 11:27:24
User Avatar
Member
20 posts
Joined: 8月 2012
Offline
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

Attachments:
displayoptions.png (47.1 KB)

-----Neil
User Avatar
Member
318 posts
Joined: 1月 2013
Online
This scheme can be found in the configuration files: $HFS/houdini/config/3DSceneColors.dg
User Avatar
Member
20 posts
Joined: 8月 2012
Offline
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.
-----Neil
  • Quick Links