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
730 9 0- frescalus
- Member
- 20 posts
- Joined: 8月 2012
- Offline
- alexwheezy
- 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.
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 alexwheezy - 2024年12月7日 04:37:32
- frescalus
- 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
- alexwheezy
- Member
- 318 posts
- Joined: 1月 2013
- Online
- frescalus
- 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
- frescalus
- Member
- 20 posts
- Joined: 8月 2012
- Offline
- alexwheezy
- 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
- frescalus
- 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
-----Neil
- alexwheezy
- Member
- 318 posts
- Joined: 1月 2013
- Online
- frescalus
- Member
- 20 posts
- Joined: 8月 2012
- Offline
-
- Quick Links