From b0c62d314b90b08154581f658dab6b65cc7f830e Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Mon, 22 Apr 2024 15:58:31 +0200 Subject: [PATCH] tweak filepath a little bit --- .../hosts/houdini/plugins/create/create_arnold_ass.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/ayon_core/hosts/houdini/plugins/create/create_arnold_ass.py b/client/ayon_core/hosts/houdini/plugins/create/create_arnold_ass.py index e7ff01edee..469b643875 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_arnold_ass.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_arnold_ass.py @@ -16,7 +16,6 @@ class CreateArnoldAss(plugin.HoudiniCreator): # however calling HoudiniCreator.create() # will override it by the value in the project settings ext = ".ass" - staging_dir = "$HIP/ayon/{product[name]}/{product[name]}.{ext}" def create(self, product_name, instance_data, pre_create_data): import hou @@ -40,9 +39,11 @@ class CreateArnoldAss(plugin.HoudiniCreator): parm_template_group.hideFolder("Properties", True) instance_node.setParmTemplateGroup(parm_template_group) - filepath = self.staging_dir.format( - product={"name": "`chs(\"AYON_productName\")`"}, - ext=self.ext.lstrip(".") + filepath = "{staging_dir}/{product_name}.$F4.{ext}".format( + staging_dir=hou.text.expandString("$HIP/pyblish"), + # keep dynamic link to product name + product_name="`chs(\"AYON_productName\")`", + ext=self.ext.lstrip(".") # ignore the dot in self.ext ) parms = {