PoseBone.localMatrix relative to what space?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
der_ton
Posts: 0
Joined: Mon Oct 20, 2003 1:02 am

PoseBone.localMatrix relative to what space?

Post by der_ton »

What space is a posebone's localMatrix supposed to be in? I'm trying to import animation using the pose module and would need to know that.
Thanks! :)

an-toni
Posts: 0
Joined: Wed Mar 17, 2004 5:20 pm

Post by an-toni »

http://www.blender.org/cms/How_Armature ... 634.0.html hopefully explains the things in the apidoc,

i dont know the answer off-hand.

~Toni

Ben
Posts: 9
Joined: Wed Oct 23, 2002 8:32 pm

Post by Ben »

I think(I'm not so sure anyway...)that localMatrix contains
the relative transformation between the first frame and another
frame,it contains only the changes not a position.It must be
multiplied with another matrix(in world,armature or bone space)
to get the total transformation.


Ben

der_ton
Posts: 0
Joined: Mon Oct 20, 2003 1:02 am

Post by der_ton »

Thanks for the answers! But I still haven't had any progress. In the link an-toni posted with the explanation of the armature system, there is no mention of localMatrix.

der_ton
Posts: 0
Joined: Mon Oct 20, 2003 1:02 am

Post by der_ton »

I got it. Just like the documentation says:
localMatrix: The matrix combination of rot/quat/loc.

This means that it is relative to the bone's restpose matrix. If you set a keyframe with identity matrices for all bones' localMatrices, you get the rest pose.

Regarding the "how armatures work" illustration linked by an-toni, localMatrix apparently is the same as pose_mat.

an-toni
Posts: 0
Joined: Wed Mar 17, 2004 5:20 pm

Post by an-toni »

glad to see you figured it out, and thanks for sharing the info!

~Toni

Post Reply