"matrix" attribute of a transform and "parentMatrix[0]" attribute of the child



Should these attributes mean the same thing?

I am multiplying matrices and switching inputs between matrix of a transform and its child’s parentMatrix gives me different results. The same thing is true for switching between parentInverseMatrix on the child and inverseMatrix on the parent.

I’d like to know more about the topic.

Thanks in advance


The matrix attributes returns the local matrix of the node, so that’s the matrix relative to the parent. While the parentMatrix attribute returns the worldmatrix of the parent for the node. Similarly for the inverse matrices as well.


yeah. that turned out to be the case. not a good naming of the attribute in this case.

Thank you!


Well, at face value maybe, but the documentation is pretty clear about these attributes: