Skip to content

Instantly share code, notes, and snippets.

@simonreeves
Created July 18, 2019 19:38
Show Gist options
  • Save simonreeves/cfa2680bd50ee3860acf86cad4dc9f4a to your computer and use it in GitHub Desktop.
Save simonreeves/cfa2680bd50ee3860acf86cad4dc9f4a to your computer and use it in GitHub Desktop.
#houdini #python
def nulls_from_x():
for node in hou.selectedNodes():
print(node.name())
t = node.parmTuple('t').eval()
r = node.parmTuple('r').eval()
s = node.parmTuple('s').eval()
scale = node.parm('scale').eval()
new_null = hou.node('obj/').createNode('null')
new_null.parmTuple('t').set(t)
new_null.parmTuple('r').set(r)
new_null.parmTuple('s').set(s)
new_null.parm('scale').set(scale)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment