From 3304570bae3d3b5a55f855e89c459aaaf29b3b0b Mon Sep 17 00:00:00 2001 From: David Lai Date: Mon, 16 Dec 2019 21:13:34 +0800 Subject: [PATCH] Changed to listing all nodes after confirming value is None --- avalon/houdini/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avalon/houdini/lib.py b/avalon/houdini/lib.py index 66890a24d..bc2295b95 100644 --- a/avalon/houdini/lib.py +++ b/avalon/houdini/lib.py @@ -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})