HDA operator's default shape and color in Network View

   747   5   1
User Avatar
Member
21 posts
Joined: Nov. 2019
Offline
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!
User Avatar
Member
208 posts
Joined: June 2023
Offline
Hold ctrl and drag the shape onto your node
User Avatar
Member
102 posts
Joined: June 2023
Offline
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.
User Avatar
Member
97 posts
Joined: Dec. 2019
Offline
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.
Houdini Pipeline Supervisor @ TAT Studio
User Avatar
Member
21 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!
User Avatar
Member
2041 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