I have a scene where a cube is randomly rotated and moved. And I want to return it back to the center of the coordinate system. I create an attribute xform_cube (matrix 4x4) and then multiply the cube's P by this inverted matrix. Everything works.
Image Not Found
Image Not Found
But I try to do the same thing in another way using the extract transform node. I connect trans and the cube comes to the center of the coordinates. But when I connect rot, the rotation is strange.
Image Not Found
Image Not Found
Please tell me what I missed? Some auxiliary nodes for conversion, maybe?