Matrix inverting features

An attempt to invert the transformation matrix with the inverted() method can be failed if, for example, some constraint affects the object for which the initial matrix is calculated.

In this case, Blender will generate an error:

ValueError: Matrix.invert(ed): matrix does not have an inverse

In order to avoid an error, to invert such matrices, you need to use the inverted_safe() method

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comment
Inline Feedbacks
View all comments