Skip to content

Instantly share code, notes, and snippets.

@simonreeves
Created August 14, 2019 10:23
Show Gist options
  • Save simonreeves/7d95a8edb6014f9619a0c1da93bf96c1 to your computer and use it in GitHub Desktop.
Save simonreeves/7d95a8edb6014f9619a0c1da93bf96c1 to your computer and use it in GitHub Desktop.
# not complete but an example
def n():
# get child nodes from a node
prop_nodes = hou.node('/obj/action/props/').children()
# loop through children
for prop in prop_nodes:
# filter by name
if 'lens' not in prop.name():
continue
# get a parm on node
mat_parm = hou.parm(prop.path() + '/material1/shop_materialpath1')
print(prop.name() + ': ' + mat_parm.eval())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment