From ed26f80a13b686ca7ebb8ec4f3a8d01d7406e09b Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Mon, 22 Apr 2024 16:14:09 +0200 Subject: [PATCH] tweak filepath a little bit --- .../ayon_core/hosts/houdini/plugins/create/create_bgeo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/ayon_core/hosts/houdini/plugins/create/create_bgeo.py b/client/ayon_core/hosts/houdini/plugins/create/create_bgeo.py index a6a55b3ab8..e8c7717354 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_bgeo.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_bgeo.py @@ -12,7 +12,6 @@ class CreateBGEO(plugin.HoudiniCreator): label = "PointCache (Bgeo)" product_type = "pointcache" icon = "gears" - staging_dir = "$HIP/ayon/{product[name]}/{product[name]}.$F4.{ext}" def create(self, product_name, instance_data, pre_create_data): @@ -30,11 +29,12 @@ class CreateBGEO(plugin.HoudiniCreator): instance_node = hou.node(instance.get("instance_node")) - filepath = self.staging_dir.format( - product={"name": "`chs(\"AYON_productName\")`"}, + filepath = "{staging_dir}/{product_name}.{ext}".format( + staging_dir=hou.text.expandString("$HIP/pyblish"), + # keep dynamic link to product name + product_name="`chs(\"AYON_productName\")`", ext=pre_create_data.get("bgeo_type") or "bgeo.sc" ) - parms = { "sopoutput": filepath }