Skip to content

Instantly share code, notes, and snippets.

@morphingdesign
Created January 25, 2021 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morphingdesign/3ae6ddbfb1966de21f1dd1cfc3bfa730 to your computer and use it in GitHub Desktop.
Save morphingdesign/3ae6ddbfb1966de21f1dd1cfc3bfa730 to your computer and use it in GitHub Desktop.
Get and set default colors for Houdini sticky notes, text, and network boxes.
# Get default Houdini OOTB colors for Sticky Notes, Text, and Network Boxes
print(hou.defaultColor(hou.colorItemType.StickyNote))
# <hou.Color r=1, g=0.969, b=0.522>
print(hou.defaultColor(hou.colorItemType.StickyNoteText))
# <hou.Color r=0, g=0, b=0>
print(hou.defaultColor(hou.colorItemType.NetworkBox))
# <hou.Color r=0.52, g=0.52, b=0.52>
# Set custom default colors for Houdini Sticky Notes and Network Boxes
# Sticky Notes set to white
hou.setDefaultColor(hou.colorItemType.StickyNote, hou.Color(1.0, 1.0, 1.0))
# Sticky Notes Text default retained as black; uncomment to customize
#hou.setDefaultColor(hou.colorItemType.StickyNoteText, hou.Color(0.0, 0.0, 0.0))
# Network Boxes set to black
hou.setDefaultColor(hou.colorItemType.NetworkBox, hou.Color(0.0, 0.0, 0.0))
@JunruTao
Copy link

Nice one, fun tricks! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment