mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
usd mesh format to trimesh and adjustment on update function in loaders.
This commit is contained in:
parent
b73e0fd94e
commit
d780974b1b
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue