I'm trying to update a script from blender 2.55 to 2.7 which was supposed to work, but here I have an issue, to get the bone matrices I take the armature world_matrix and multiply by the bone local_matrix but all my bone seems to be at 0,0,0. I need to obtain the world matrix of each bone in object mode.
my test code:
import bpy from bpy.props import * ob=bpy.context.selected_objects for bone in ob.modifiers.object.pose.bones: print("matrix channel",bone.matrix_channel) for bone in ob.modifiers.object.data.bones: print("matrix_local",bone.matrix_local)
For both I have 0,0,0 for location (last line 0 0 0 1)