fix bug with using new parameter AYONproductName

This commit is contained in:
MustafaJafar 2024-02-23 22:40:00 +02:00
parent 197279b913
commit 22d336535d
2 changed files with 3 additions and 3 deletions

View file

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

View file

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