System Information
Operating system: Windows 10.0.18363.657
Graphics card: GeForce RTX 2080
Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd76f, type: Release
build date: 2020-02-13, 01:56:46
Short description of error
I made an addon that reads obj file per frame and changes an object.data.vertices[i].co by a for loop.
blender plays well in viewport
but when i try to export an alembic. it outputs a static mesh.and sometimes blender goes crash
Exact steps for others to reproduce the error
full addon is in the zip
Run this script and click play(changes timeline). The monkey should be deformed.
Then export the alembic. Import it back, it is static.
@persistent
def frame_step(scene):
depsgraph = bpy.context.evaluated_depsgraph_get()
try:
for obj in bpy.data.objects:
if obj.objseq_settings.loaded:
with SimpleWaveFront(obj.objseq_settings, scene.frame_current) as vertices:
for i in range(min(len(obj.data.vertices), len(vertices))):
obj.data.vertices[i].co = vertices[i]
obj.data = obj.data
obj = obj.evaluated_get(depsgraph)
except Exception as e:
raise e