usd mesh format to trimesh and adjustment on update function in loaders.

This commit is contained in:
Kayla Man 2023-03-17 17:23:44 +08:00
parent b73e0fd94e
commit d780974b1b
4 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ importFile @"{filepath}" #noPrompt using:FBXIMP
path = get_representation_path(representation)
node = rt.getNodeByName(container["instance_node"])
fbx_objects = self.get_container_children(node)
fbx_objects = node.Children
for fbx_object in fbx_objects:
fbx_object.source = path

View file

@ -41,7 +41,7 @@ class ObjLoader(load.LoaderPlugin):
path = get_representation_path(representation)
node = rt.getNodeByName(container["instance_node"])
objects = self.get_container_children(node)
objects = node.Children
for obj in objects:
obj.source = path

View file

@ -41,7 +41,7 @@ class ModelUSDLoader(load.LoaderPlugin):
path = get_representation_path(representation)
node = rt.getNodeByName(container["instance_node"])
usd_objects = self.get_container_children(node)
usd_objects = node.Children
for usd_object in usd_objects:
usd_object.source = path

View file

@ -101,7 +101,7 @@ class ExtractModelUSD(publish.Extractor,
export_options.Lights = False
export_options.Cameras = False
export_options.Materials = False
export_options.MeshFormat = rt.name('polyMesh')
export_options.MeshFormat = rt.name('triMesh')
export_options.FileFormat = rt.name('ascii')
export_options.UpAxis = rt.name('y')
export_options.LogLevel = rt.name('info')