Skip to content

Instantly share code, notes, and snippets.

@simonreeves
Last active June 12, 2019 10:56
Show Gist options
  • Save simonreeves/3f3ab2b251a30195de4abee8868528e6 to your computer and use it in GitHub Desktop.
Save simonreeves/3f3ab2b251a30195de4abee8868528e6 to your computer and use it in GitHub Desktop.
#houdini #python shelf tool for tab menu
# toolsutil part came from a built-in shelf tool so I could get the correct context pwd
import toolutils
pane = toolutils.activePane(kwargs)
new_node = pane.pwd().createNode('subnet', 'lights')
new_node.setColor(hou.Color(0.97, 0.8, 0.27))
new_node.setUserData('nodeshape', 'light')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment