From fa6c491d5286002e7eb6018a1b6f2c5f6dc721a2 Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Wed, 14 Apr 2021 10:23:39 +0100 Subject: [PATCH] Fixed alembic extraction --- openpype/hosts/blender/plugins/publish/extract_abc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openpype/hosts/blender/plugins/publish/extract_abc.py b/openpype/hosts/blender/plugins/publish/extract_abc.py index 6a89c6019b..e1eef61560 100644 --- a/openpype/hosts/blender/plugins/publish/extract_abc.py +++ b/openpype/hosts/blender/plugins/publish/extract_abc.py @@ -18,7 +18,7 @@ class ExtractABC(openpype.api.Extractor): # Define extract output file path stagingdir = self.staging_dir(instance) - filename = f"{instance.name}.fbx" + filename = f"{instance.name}.abc" filepath = os.path.join(stagingdir, filename) context = bpy.context @@ -72,9 +72,7 @@ class ExtractABC(openpype.api.Extractor): # We export the abc bpy.ops.wm.alembic_export( new_context, - filepath=filepath, - start=1, - end=1 + filepath=filepath ) view_layer.active_layer_collection = old_active_layer_collection