I hope to use “corrective shape key add on” with 2.8. (it must need for me, to edit armature morphs,)
https://en.blender.org/index.php/Extensions:2.6/Py/Scripts/Animation/Corrective_Shape_Key
Then have tried to edit file for 2.8 API. I could register, un-register, but could not solve the erroer when
I generate copy mesh (armature modified with shape key).
line 204, in func_object_duplicate_flatten_modifiers
mesh = obj.to_mesh(depsgraph, True, ‘PREVIEW’)
TypeError: Object.to_mesh(): required parameter “calc_undeformed” to be a keyword argument!
I supposed I need to add “calc underomed” argument, (it was optional for 2.7)
then added it like that,
mesh = obj.to_mesh(depsgraph, True, ‘PREVIEW’, True)
But it cause another erroer, this time I seems only need 3 arguments,
corrective_shape_key_alpha.py", line 204, in func_object_duplicate_flatten_modifiers
mesh = obj.to_mesh(depsgraph, True, ‘PREVIEW’, True)
TypeError: Object.to_mesh(): takes at most 3 arguments, got 4
so what I can do?