change AYON prefix in houdini

This commit is contained in:
Jakub Trllo 2024-02-28 11:45:01 +01:00
parent 6c945b751b
commit d85b4ee90e
3 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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"
)

View file

@ -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'.",