fx notes

Search

Search IconIcon to open search

Node Shapes and Colors

Last updated Sep 7, 2023 Edit Source

# Getting All Node Shape Names

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Get All Node Shape Names

editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)

print(editor.nodeShapes())

# All available Node Shape Names

# ('rect', 'bone', 'bulge', 'bulge_down', 'burst', 'camera', 
# 'chevron_down', 'chevron_up', 'cigar', 'circle', 'clipped_left', 
# 'clipped_right', 'cloud', 'diamond', 'ensign', 'gurgle', 'light', 
# 'null', 'oval', 'peanut', 'pointy', 'slash', 'squared', 'star', 
# 'tabbed_left', 'tabbed_right', 'tilted', 'trapezoid_down', 
# 'trapezoid_up', 'wave')

# Setting a Default Color and Shape for an HDA

Create a OnCreated script in the Scripts tab of the type properties of the HDA and paste the following code:

1
2
kwargs["node"].setColor( hou.Color(1,0,0) )
kwargs["node"].SetUserData( 'nodeshape', 'wave')

sources / further reading:


Interactive Graph