Hi folks, I am trying to write a script that changes the values for the MHX2 rig imported into Blender from Makehuman. For instance, dropping the jaw looks like this (it’s a setting in the tools panel):
If I print this, the current value of MfaJawDropStretched is output. But then I try to change the value like this:
bpy.data.objects[“Fg02”][“MfaJawDropStretched”] = 1
Now the new value is output when I do print on this but nothing happens with the rig.
If I rather change the value directly in the tools panel by using the slider, that new value is also output when I print the above line. So it is the same object, but it seems to only go “one way” so to speak.
Does anyone know what I do wrong and what is the right way to do this?
(Just in case anyone wonders why I want to script this: I want to hook up a shape key to each one of the Face Units so I can fine tune the face expressions when animating. So I am writing an addon for this.)