0
$\begingroup$

I have a custom property that controls two shape keys. When I type bpy.context.object.pose.bones["Bone"]["prueba"] = 1.0 in the console, the value changes but does not affect the shape keys. If after that I click on the value slider of the property it updates the changes. What can I do to solve this?

$\endgroup$
0
$\begingroup$

You might have to force a frame change to get it to update.

   bpy.context.scene.frame_current += 1
$\endgroup$
  • 3
    $\begingroup$ Set a frame with scene.frame_set(frame) or use scene.update() $\endgroup$ – batFINGER Jun 7 '16 at 2:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.