When I try to set pose bone's head in keyframe, I knew that the bone's head is just read only, so I have to convert the bone's head to bone's location or matrix, after searching a lot of information,I know this furmula:
(pbone.matrix*armature.matrix_world).to_translation()=pbone.head
now I want to change pbone.head and keep armature.matrix_world constant, so how do I get pbone.matrix?
pb.head = pb.matrix.translation
, or in other words keyframe pose bone location (when not connected) Moving the pose bone doesn't effect the world matrix of its armature object. The matrix world of the object is used to calc the global transform of the local data, in this case pose bones. blender.stackexchange.com/questions/109815/… $\endgroup$ – batFINGER Oct 12 '18 at 12:18pb.location
if it is then would need to adjust the parent bone, such that its tail is where the head is to be. Possible Duplicate $\endgroup$ – batFINGER Oct 12 '18 at 12:39