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$

1 Answer 1

0
$\begingroup$

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .