From 2c53fcf8e5cebc301787a755b920d88f59fe8d47 Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Mon, 22 Apr 2024 15:43:34 +0200 Subject: [PATCH] fix typo --- .../houdini/plugins/create/create_pointcache.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/client/ayon_core/hosts/houdini/plugins/create/create_pointcache.py b/client/ayon_core/hosts/houdini/plugins/create/create_pointcache.py index b1804940d1..4c9a0d9b37 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_pointcache.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_pointcache.py @@ -13,8 +13,6 @@ class CreatePointCache(plugin.HoudiniCreator): label = "PointCache (Abc)" product_type = "pointcache" icon = "gears" - ext = "abc" - staging_dir = "$HIP/ayon/{product[name]}/{product[name]}.{ext}" def create(self, product_name, instance_data, pre_create_data): instance_data.pop("active", None) @@ -29,12 +27,6 @@ class CreatePointCache(plugin.HoudiniCreator): pre_create_data) instance_node = hou.node(instance.get("instance_node")) - - filepath = self.staging_dir.format( - product={"name": "`chs(\"AYON_productName\")`"}, - ext=self.ext - ) - parms = { "use_sop_path": True, "build_from_path": True, @@ -42,7 +34,8 @@ class CreatePointCache(plugin.HoudiniCreator): "prim_to_detail_pattern": "cbId", "format": 2, "facesets": 0, - "filename": filepath + "filename": hou.text.expandString( + "$HIP/pyblish/{}.abc".format(product_name)) } if self.selected_nodes: @@ -112,7 +105,7 @@ class CreatePointCache(plugin.HoudiniCreator): elif len(outputs) == 1: return outputs[0] - # if there are more than one, then it have multiple ouput nodes + # if there are more than one, then it have multiple output nodes # return the one with the minimum 'outputidx' else: return min(outputs,