Skip to content

Commit

Permalink
Merge pull request #491 from davidlatwe/tiny-hou-improve
Browse files Browse the repository at this point in the history
Tiny Houdini `lib.lsattr` improvement
  • Loading branch information
davidlatwe committed Dec 20, 2019
2 parents cc0574c + 3304570 commit a5b2733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avalon/houdini/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def imprint(node, data):


def lsattr(attr, value=None):
nodes = list(hou.node("/obj").allNodes())
if value is None:
nodes = list(hou.node("/obj").allNodes())
return [n for n in nodes if n.parm(attr)]
return lsattrs({attr: value})

Expand Down

0 comments on commit a5b2733

Please sign in to comment.