From 22d336535dcafac3e23b738688fd93e0cbda021e Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Fri, 23 Feb 2024 22:40:00 +0200 Subject: [PATCH] fix bug with using new parameter AYONproductName --- client/ayon_core/hosts/houdini/api/plugin.py | 4 ++-- .../ayon_core/hosts/houdini/plugins/create/create_workfile.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ayon_core/hosts/houdini/api/plugin.py b/client/ayon_core/hosts/houdini/api/plugin.py index 918de43441..2dd06d8d5e 100644 --- a/client/ayon_core/hosts/houdini/api/plugin.py +++ b/client/ayon_core/hosts/houdini/api/plugin.py @@ -271,8 +271,8 @@ class HoudiniCreator(NewCreator, HoudiniCreatorBase): def imprint(self, node, values, update=False): # Never store instance node and instance id since that data comes # from the node's path - if "AYONProductName" in values: - values["productName"] = values.pop("AYONProductName") + if "productName" in values: + values["AYONProductName"] = values.pop("productName") values.pop("instance_node", None) values.pop("instance_id", None) imprint(node, values, update=update) diff --git a/client/ayon_core/hosts/houdini/plugins/create/create_workfile.py b/client/ayon_core/hosts/houdini/plugins/create/create_workfile.py index b751bce78b..2bf196bcf6 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_workfile.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_workfile.py @@ -67,7 +67,7 @@ class CreateWorkfile(plugin.HoudiniCreatorBase, AutoCreator): ) current_instance["folderPath"] = asset_name current_instance["task"] = task_name - current_instance["productName"] = product_name + current_instance["AYONProductName"] = product_name # write workfile information to context container. op_ctx = hou.node(CONTEXT_CONTAINER)