Skip to content

Instantly share code, notes, and snippets.

@deepakxyz
Last active January 11, 2022 15:47
Show Gist options
  • Save deepakxyz/8ca77899cb7d81ce349d9a5e29324c41 to your computer and use it in GitHub Desktop.
Save deepakxyz/8ca77899cb7d81ce349d9a5e29324c41 to your computer and use it in GitHub Desktop.
Create attribute wrangle under the selected node
node = hou.selectedNodes()[0]
attributeWrangle = node.parent().createNode('attribwrangle')
attributeWrangle.setInput(0,node)
attributeWrangle.setPosition(node.position() + hou.Vector2(0,-1))
#attributeWrangle.setColor(hou.Color((0.4,0.6,1.0)))
attributeWrangle.setDisplayFlag(True)
attributeWrangle.setRenderFlag(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment