Skip to content

Instantly share code, notes, and snippets.

@K240-zz
Created July 31, 2012 02:39
Show Gist options
  • Select an option

  • Save K240-zz/3212986 to your computer and use it in GitHub Desktop.

Select an option

Save K240-zz/3212986 to your computer and use it in GitHub Desktop.
Where did you chaged Mr.Houdini?
import hou
def where_did_changed(node):
for child in node.children():
for parm in child.parms():
try:
value = parm.eval()
index = parm.componentIndex()
cvalue = parm.parmTemplate().defaultValue()[index]
if value != cvalue:
print "%s %s -> %s" % (parm.path(), cvalue, value)
except:
pass
where_did_changed(child)
where_did_changed(hou.node("/"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment