From 2b4b8f359ea83284509c5f05bcd0543eb4d85c98 Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Thu, 19 Dec 2024 14:49:58 +0200 Subject: [PATCH] onle eval `usd_compatible_representations` parm if it exists --- client/ayon_houdini/api/hda_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_houdini/api/hda_utils.py b/client/ayon_houdini/api/hda_utils.py index ab7d37a1c2..7de0a6ce2f 100644 --- a/client/ayon_houdini/api/hda_utils.py +++ b/client/ayon_houdini/api/hda_utils.py @@ -815,7 +815,7 @@ def get_available_representations(node): version_ids={version_entity["id"]}, fields={"name"}, representation_names=ALLOWED_USD_REPRESENTATIONS \ - if node.parm("usd_compatible_representations").eval() else None + if node.parm("usd_compatible_representations") and node.parm("usd_compatible_representations").eval() else None ) representations_names = [n["name"] for n in representations] return representations_names