Created
August 14, 2019 10:23
-
-
Save simonreeves/7d95a8edb6014f9619a0c1da93bf96c1 to your computer and use it in GitHub Desktop.
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
# 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