Hi!
Where can I specify the Network View shape and color of a custom built HDA operator, so that it always has this as default shape on create?
Thank you!
HDA operator's default shape and color in Network View
1522 5 1-
- TubeSmokeGuy
- Member
- 23 posts
- Joined: Nov. 2019
- Offline
-
- kodra
- Member
- 373 posts
- Joined: June 2023
- Offline
-
- HGaal
- Member
- 102 posts
- Joined: June 2023
- Offline
-
- ObeidaZakzak
- Member
- 123 posts
- Joined: Dec. 2019
- Offline
A good way to do this is by setting the shape and color in the HDA's OnCreated script.
The list of available shapes can be accessed with hou.NetworkEditor.nodeShapes method.
kwargs["node"].setColor(hou.Color((1, 0.725, 0))) kwargs["node"].setUserData('nodeshape', 'circle')
The list of available shapes can be accessed with hou.NetworkEditor.nodeShapes method.
Houdini Pipeline Supervisor @ TAT Studio
-
- TubeSmokeGuy
- Member
- 23 posts
- Joined: Nov. 2019
- Offline
ObeidaZakzak
A good way to do this is by setting the shape and color in the HDA's OnCreated script.kwargs["node"].setColor(hou.Color((1, 0.725, 0))) kwargs["node"].setUserData('nodeshape', 'circle')
The list of available shapes can be accessed with hou.NetworkEditor.nodeShapes method.
Thanks! This is the way!
-
- BabaJ
- Member
- 2137 posts
- Joined: Sept. 2015
- Offline
HGaal
But don't forget that installing a new build will destroy all custom node colors. Complain to support, maybe they will fix it someday. In a few years.
There's nothing to be fixed.
When you change a nodes default color or shape Houdini saves out files respectively -
"Default_Theme_theme.nodecolors"
and
"Default_Theme_theme.nodeshapes"
They are saved in the same folder as your houdini.env file.
So all you have to do is copy those files and place them in your new install.
Nothing lost.
Edited by BabaJ - Dec. 7, 2023 13:24:48
-
- Quick Links