From 0ceec686e1596703a77ac2aae583a9e2fb5202c6 Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Mon, 22 Apr 2024 15:45:48 +0200 Subject: [PATCH] tweak filepath a little bit --- .../houdini/plugins/create/create_alembic_camera.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/ayon_core/hosts/houdini/plugins/create/create_alembic_camera.py b/client/ayon_core/hosts/houdini/plugins/create/create_alembic_camera.py index 6eeb51eeac..60025ff3c0 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_alembic_camera.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_alembic_camera.py @@ -13,8 +13,6 @@ class CreateAlembicCamera(plugin.HoudiniCreator): label = "Camera (Abc)" product_type = "camera" icon = "camera" - ext = "abc" - staging_dir = "$HIP/ayon/{product[name]}/{product[name]}.{ext}" def create(self, product_name, instance_data, pre_create_data): import hou @@ -29,9 +27,10 @@ class CreateAlembicCamera(plugin.HoudiniCreator): instance_node = hou.node(instance.get("instance_node")) - filepath = self.staging_dir.format( - product={"name": "`chs(\"AYON_productName\")`"}, - ext=self.ext + filepath = "{staging_dir}/{product_name}.abc".format( + staging_dir=hou.text.expandString("$HIP/pyblish/"), + # keep dynamic link to product name + product_name="`chs(\"AYON_productName\")`", ) parms = {