Expression painter:currentmatrix() returns a Qt variant of class qt.QTransform representing the current transformation matrix.
painter:currentmatrix()
qt.QTransform