0
$\begingroup$

Hi I need to get the knee position relative to the root in the attached image

Right now I use

local_mat = ob.convert_space(pose_bone=pbone, matrix=pbone.matrix, from_space='POSE', to_space='LOCAL') and local_mat.to_translation() to get the position, but it's all 0. Is there a way to do this in Blender?

$\endgroup$

1 Answer 1

1
$\begingroup$

This:

obj.pose.bones['Bone'].head

gets bone position in object space (relative to object's root)

$\endgroup$
2
  • $\begingroup$ Is it possible to get the relative pose with the second bone's head instead of root? $\endgroup$
    – ydji
    Commented Sep 21, 2023 at 8:02
  • $\begingroup$ Aha, just subtract that vector should be good $\endgroup$
    – ydji
    Commented Sep 21, 2023 at 8:30

You must log in to answer this question.

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