add loader

This commit is contained in:
Kayla Man 2023-02-28 18:31:53 +08:00 committed by Milan Kolar
parent a4c36b9e4f
commit f95f8f6ebe

View file

@ -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"])