# Get visual transform of object through python

I'm trying to save transform matrices of objects into a text file using python. These objects are animated using armatures. I tried to use the "matrix_world" field but that only contains the base value. It's possible to do similar to a mesh which gives a transformed mesh (using the animations and modifiers, etc) but that does not contain the transformation matrix that I need.

Is is possible to get that transformation matrix which is used to render the mesh in the view (basically that matrix which is created using the base matrix plus the animations)?

You can use bpy.data.objects["Armature"].pose.bones["Bone"].matrix added to your armature global transform matrix or also you can use this answer: