Created
July 18, 2019 19:38
-
-
Save simonreeves/cfa2680bd50ee3860acf86cad4dc9f4a to your computer and use it in GitHub Desktop.
#houdini #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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