It seems like calling either the alembic exporter or the alembic importer from a .py script crashes with "Error : EXCEPTION_ACCESS_VIOLATION"
If you comment the importer part, the script wont crash Blender, however exporting and importing has some weird behavior.
- Add the addon below
- Enable the addon (AlembicCrashes)
- Add a cube
- Select the cube
- Run bpy.ops.object.alembiccrash()
This is a stripped down version of the script I was trying to write, but I cant seem to pass this stage of importing. The path in there is relative but feel free to add real paths, the result wont change.
```
import bpy
import os
bl_info = {
"name" : "AlembicCrashes",
"author" : "kursad",
"description" : "",
"blender" : (2, 80, 0),
"location" : "",
"warning" : "",
"category" : "Generic"
}
class AlembicCrashesOperator(bpy.types.Operator):
bl_idname = "object.alembiccrash"
bl_label = "CrashAlembic"
def execute(self, context):
bpy.ops.wm.alembic_export(filepath="Cube.abc", selected=True)
bpy.ops.wm.alembic_import(filepath="Cube.abc")
return {'FINISHED'}
def register():
bpy.utils.register_class(AlembicCrashesOperator)
def unregister():
bpy.utils.unregister_class(AlembicCrashesOperator)
```