From f95f8f6ebe4a1d32a97ca3daa14d061a31befce9 Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Tue, 28 Feb 2023 18:31:53 +0800 Subject: [PATCH] add loader --- openpype/hosts/max/plugins/load/load_pointcloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/hosts/max/plugins/load/load_pointcloud.py b/openpype/hosts/max/plugins/load/load_pointcloud.py index dfa63e23f8..27bc88b4f3 100644 --- a/openpype/hosts/max/plugins/load/load_pointcloud.py +++ b/openpype/hosts/max/plugins/load/load_pointcloud.py @@ -17,8 +17,8 @@ class PointCloudLoader(load.LoaderPlugin): def load(self, context, name=None, namespace=None, data=None): """load point cloud by tyCache""" - from pymxs import runtime as rt + filepath = os.path.normpath(self.fname) obj = rt.tyCache() obj.filename = filepath @@ -30,8 +30,8 @@ class PointCloudLoader(load.LoaderPlugin): def update(self, container, representation): """update the container""" - from pymxs import runtime as rt + path = get_representation_path(representation) node = rt.getNodeByName(container["instance_node"])