Fixed problem that published objects not in the instance

This commit is contained in:
Simone Barbieri 2021-04-14 15:59:15 +01:00
parent 4a8339dd12
commit 5f58f18cd9

View file

@ -52,6 +52,8 @@ class ExtractABC(openpype.api.Extractor):
old_scale = scene.unit_settings.scale_length
bpy.ops.object.select_all(action='DESELECT')
selected = list()
for obj in instance:
@ -67,12 +69,11 @@ class ExtractABC(openpype.api.Extractor):
# We set the scale of the scene for the export
scene.unit_settings.scale_length = 0.01
self.log.info(new_context)
# We export the abc
bpy.ops.wm.alembic_export(
new_context,
filepath=filepath
filepath=filepath,
selected=True
)
view_layer.active_layer_collection = old_active_layer_collection