From c92791c10661a80fb06ba3c6bb2ee48506f6d054 Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Fri, 12 Jul 2024 18:24:03 +0300 Subject: [PATCH] hide parameters permanently and move to good possition --- client/ayon_houdini/api/workfile_template_builder.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/ayon_houdini/api/workfile_template_builder.py b/client/ayon_houdini/api/workfile_template_builder.py index d28f200ac2..ff0c52f531 100644 --- a/client/ayon_houdini/api/workfile_template_builder.py +++ b/client/ayon_houdini/api/workfile_template_builder.py @@ -182,8 +182,13 @@ def create_placeholder_node(self, node_name=None): """ node = hou.node("/out").createNode("null", node_name) - node.parm("execute").hide(True) - node.parm("renderdialog").hide(True) + node.moveToGoodPosition() + parms = node.parmTemplateGroup() + for parm in {"execute", "renderdialog"}: + p = parms.find(parm) + p.hide(True) + parms.replace(parm, p) + node.setParmTemplateGroup(parms) return node def create_placeholder(self, placeholder_data):