Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
norajoby opened this issue Apr 11, 2021 · 4 comments
Open

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

norajoby opened this issue Apr 11, 2021 · 4 comments

Comments

@norajoby
Copy link

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 "<blender_console>", 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
Copy link

aldelb commented Feb 15, 2022

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

@NumesSanguis
Copy link
Owner

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
Copy link

aldelb commented Feb 15, 2022

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants