From 816eb713938b5b11371c148ffbfbedfe1866d3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= Date: Wed, 9 Feb 2022 14:57:25 +0100 Subject: [PATCH] add `/stage` to ls --- openpype/hosts/houdini/api/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/hosts/houdini/api/lib.py b/openpype/hosts/houdini/api/lib.py index eaaba94ed5..6e48791ce8 100644 --- a/openpype/hosts/houdini/api/lib.py +++ b/openpype/hosts/houdini/api/lib.py @@ -406,6 +406,7 @@ def imprint(node, data): def lsattr(attr, value=None): if value is None: nodes = list(hou.node("/obj").allNodes()) + nodes += list(hou.node("/stage").allNodes()) return [n for n in nodes if n.parm(attr)] return lsattrs({attr: value}) @@ -428,6 +429,7 @@ def lsattrs(attrs): matches = set() nodes = list(hou.node("/obj").allNodes()) # returns generator object + nodes += list(hou.node("/stage").allNodes()) for node in nodes: for attr in attrs: if not node.parm(attr):