Quite a simple question I hope, I've been tearing my hair out with it for over a day now though. I'm trying to write a background python script that will import an alembic and then perform certain actions on it.
I can get the alembic to import by calling
bpy.ops.wm.alembic_import with the filepath, however this import appears to occur in a separate thread which means that the code I immediately move on to still sees an empty scene.
Is there a way to make the python script execution wait until the import is finished, or insert a callback that will be called once the import is finished? I've tried the
scene_update_post callbacks with no luck.