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 » Wed Feb 15, 2006 1:35 pm

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 » Wed Feb 15, 2006 9:34 pm

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 » Thu Feb 16, 2006 9:00 pm

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 » Mon Feb 20, 2006 12:24 am

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 » Mon Feb 20, 2006 2:42 am

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 » Tue Feb 21, 2006 5:57 pm

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

~Toni

Post Reply