refresh a mesh links to an armature

My script moves some bones of an armature. I do :


pose.update()
Window.RedrawAll()

at the end of the script, but only the bones are update, not the mesh links to them.
How can I update the mesh too ?
Thank you.
Kiopaa

It would be easier if you posted your entire script, but here are some quick suggestions:

  • Are you out of editmode when you alter the pose?
  • Enter and then exit editmode at the end
  • Call mesh.update() after you changed the pose

Thank you Crouch,
Enter and exit EditMode was a good solution for my script.
Kiopaa