NumesSanguis / FACSvatar

An Open Source Modular Framework From Face to FACS Based Avatar Animation (Unity3D / Blender)
GNU Lesser General Public License v3.0
430 stars 97 forks source link

Issue with changing bone.rotation_mode to 'XYZ' #31

Open norajoby opened 3 years ago

norajoby commented 3 years ago

I tried implementing FACSvatar with Blender 2.82 with newer version of MB-LAB (1.7.8) and the following issue arises:

Traceback (most recent call last): File "", line 1, in File "path/FACSvatar-master/blender/facsvatar_zeromq.py", line 243, in bpy.ops.wm.facsvatar_zeromq() File "/Applications/Blender 2.82.app/Contents/Resources/2.82/scripts/modules/bpy/ops.py", line 201, in call ret = op_call(self.idname_py(), None, kw) RuntimeError: Error: Traceback (most recent call last): File "path/FACSvatar-master/blender/facsvatar_zeromq.py", line 41, in init self.find_MBLabModel() File "path/FACSvatar-master/blender/facsvatar_zeromq.py", line 58, in find_MBLabModel bone.rotation_mode = 'XYZ' AttributeError: Writing to ID classes in this context is not allowed: MBlab_sk1618120982.624969, Object datablock, error setting PoseBone.rotation_mode

location: /Applications/Blender 2.82.app/Contents/Resources/2.82/scripts/modules/bpy/ops.py:201

This issue doesn't arise with Blender 2.79 and MB-LAB 1.6.1a. I suspect the source of issue is this: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Animation_API

However I am not sure how to fix this. Any suggestions?

aldelb commented 2 years ago

Hi @norajoby , Have you find a solution ? I'm facing the same issue.

NumesSanguis commented 2 years ago

Hey, seems I completely overlooked this issue. At the moment I'm not actively working on this project anymore.

@aldelb Which branch are you using of FACSvatar? Can you confirm that this issue also appears on the v0.4.0 branch?: https://github.com/NumesSanguis/FACSvatar/tree/v0.4.0

aldelb commented 2 years ago

Hello @NumesSanguis, thank for taking your time to answer. Yes, the issue appears on the V0.4.0 branch. I'm on windows 10 home and I followed the youtube tutorial and the doc online.

NumesSanguis commented 2 years ago

Hi @aldelb, some update in Blender/MB-Lab seems to have broken it then. I'm not sure when and if I have time to look into this, so you might have to dive into the Python code yourself. I'm glad to answer any questions you have though!