mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Fixed problem that published objects not in the instance
This commit is contained in:
parent
4a8339dd12
commit
5f58f18cd9
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue