i need to do some calculations which only work in Rest pose. So i tried to do:
pose_position = arm.data.pose_position arm.data.pose_position='REST' # Do some calculations on the mesh objects bound to the armature arm.data.pose_position=pose_position
But this simple idea does not work.
However, when i select Rest Position from the Blender User Interface before i call my script, then the script creates correct results. So the question is what does pressing the Rest Position Button in addition and how can i do that from Python as well?