I am trying to get one of my older python scripts to work in Blender 2.62.

In the old script, I would use setMatrix to apply the rotations I get from an external file containing a 3x3 matrix (mocap kind of…).

Since the changes in the python API, I have not been able to find back this function.

Any hint is welcome, I searched the forum, but maybe I missed the info…

To makes thing more confusing, there is still the function to generate a rotation matrix in mathutils :

# create a rotation matrix

mat_rot = mathutils.Matrix.Rotation(math.radians(45.0), 4, ‘X’)

But for the life of me I could not find where this new rotation could be applied to an object in blender…