mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
add using ornatrix alembic importer into the ornatrix alembic loaders
This commit is contained in:
parent
0a69439f2e
commit
17904600a0
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue