• Advertisement
Sign in to follow this  

How to Inverse and multiply 4x4 Matrices in Python?

This topic is 3320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well I have a blender plugin that exports bones and I need to correct the rotation of the bones by the rotation of the armature object, to do this I need to inverse the matrix from the armature and then multiply it by the matrix from the bone. So how do I inverse and multiply a matrix in python?

Share this post


Link to post
Share on other sites
Advertisement
Do you know anything about the matrix you need to invert? For example, if it's a rotation matrix, the transpose is the inverse. Similarly, if it's an affine transform you can decompose it in to a rotation and a translation and invert the parts separately (inverting a translation matrix simply involves negating the final row or column, depending on representation).

However, I would expect the Blender API to provide something for you, though. Have you looked?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement