add using ornatrix alembic importer into the ornatrix alembic loaders

This commit is contained in:
Kayla Man 2023-08-10 14:56:23 +08:00
parent 0a69439f2e
commit 17904600a0
2 changed files with 6 additions and 2 deletions

View file

@ -23,7 +23,9 @@ class OxModelAbcLoader(load.LoaderPlugin):
rt.AlembicImport.CustomAttributes = True
rt.AlembicImport.UVs = True
rt.AlembicImport.VertexColors = True
rt.importFile(file_path, rt.name("noPrompt"))
rt.importFile(
file_path, rt.name("noPrompt"),
using=rt.Ornatrix_Alembic_Importer)
scene_object_after = [obj for obj in rt.rootNode.Children]
for scene_object in scene_object_before:
scene_object_after = scene_object_after.remove(scene_object)

View file

@ -21,7 +21,9 @@ class OxAbcLoader(load.LoaderPlugin):
scene_object_before = [obj for obj in rt.rootNode.Children]
rt.AlembicImport.ImportToRoot = True
rt.AlembicImport.CustomAttributes = True
rt.importFile(file_path, rt.name("noPrompt"))
rt.importFile(
file_path, rt.name("noPrompt"),
using=rt.Ornatrix_Alembic_Importer)
scene_object_after = [obj for obj in rt.rootNode.Children]
for scene_object in scene_object_before:
scene_object_after = scene_object_after.remove(scene_object)