Skip to content

Commit

Permalink
Changed to listing all nodes after confirming value is None
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlatwe committed Dec 16, 2019
1 parent 1c641d3 commit 3304570
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 3304570

Please sign in to comment.