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 4c9a0d9b37..e3dab9ed41 100644 --- a/client/ayon_core/hosts/houdini/plugins/create/create_pointcache.py +++ b/client/ayon_core/hosts/houdini/plugins/create/create_pointcache.py @@ -27,6 +27,13 @@ class CreatePointCache(plugin.HoudiniCreator): pre_create_data) instance_node = hou.node(instance.get("instance_node")) + + 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 = { "use_sop_path": True, "build_from_path": True, @@ -34,8 +41,7 @@ class CreatePointCache(plugin.HoudiniCreator): "prim_to_detail_pattern": "cbId", "format": 2, "facesets": 0, - "filename": hou.text.expandString( - "$HIP/pyblish/{}.abc".format(product_name)) + "filename": filepath } if self.selected_nodes: