From d85b4ee90e4632f0a35075cee2ed6cd43eda81e8 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Wed, 28 Feb 2024 11:45:01 +0100 Subject: [PATCH] change AYON prefix in houdini --- client/ayon_core/hosts/houdini/api/plugin.py | 6 +++--- .../ayon_core/hosts/houdini/plugins/create/create_review.py | 2 +- .../hosts/houdini/plugins/publish/validate_subset_name.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/ayon_core/hosts/houdini/api/plugin.py b/client/ayon_core/hosts/houdini/api/plugin.py index d819f6c618..13cf3c9949 100644 --- a/client/ayon_core/hosts/houdini/api/plugin.py +++ b/client/ayon_core/hosts/houdini/api/plugin.py @@ -243,8 +243,8 @@ class HoudiniCreator(NewCreator, HoudiniCreatorBase): node_path = instance.path() node_data["instance_id"] = node_path node_data["instance_node"] = node_path - if "AYONProductName" in node_data: - node_data["productName"] = node_data.pop("AYONProductName") + if "AYON_productName" in node_data: + node_data["productName"] = node_data.pop("AYON_productName") created_instance = CreatedInstance.from_existing( node_data, self @@ -269,7 +269,7 @@ class HoudiniCreator(NewCreator, HoudiniCreatorBase): # Never store instance node and instance id since that data comes # from the node's path if "productName" in values: - values["AYONProductName"] = values.pop("productName") + values["AYON_productName"] = 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_review.py b/client/ayon_core/hosts/houdini/plugins/create/create_review.py index fe15a21c91..18f7ce498d 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_review.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_review.py @@ -34,7 +34,7 @@ class CreateReview(plugin.HoudiniCreator): filepath = "{root}/{product_name}/{product_name}.$F4.{ext}".format( root=hou.text.expandString("$HIP/pyblish"), # keep dynamic link to product name - product_name="`chs(\"AYONProductName\")`", + product_name="`chs(\"AYON_productName\")`", ext=pre_create_data.get("image_format") or "png" ) diff --git a/client/ayon_core/hosts/houdini/plugins/publish/validate_subset_name.py b/client/ayon_core/hosts/houdini/plugins/publish/validate_subset_name.py index 13522b7482..e94f09568d 100644 --- a/client/ayon_core/hosts/houdini/plugins/publish/validate_subset_name.py +++ b/client/ayon_core/hosts/houdini/plugins/publish/validate_subset_name.py @@ -91,7 +91,7 @@ class ValidateSubsetName(pyblish.api.InstancePlugin, ) instance.data["productName"] = product_name - rop_node.parm("AYONProductName").set(product_name) + rop_node.parm("AYON_productName").set(product_name) cls.log.debug( "Product name on rop node '%s' has been set to '%s'.",