Thanks @jedfrechette that is exactly what I suspected. I was first using this script from an older post:
https://www.agisoft.com/forum/index.php?topic=12053.0So reading your suggestion I changed it to this:
import Metashape
doc = Metashape.app.document
chunk = doc.chunk
T = Metashape.Matrix([[0.996788382530, 0.080044053495, 0.002253011800, -0.223356008530],
[-0.080041415989, 0.995143175125, 0.057292371988, 0.072804056108],
[0.002343843691, -0.057288724929, 0.998355031013, 0.125097066164],
[0.000000000000, 0.000000000000, 0.000000000000, 1.000000000000]])
chunk.transform.matrix = T * chunk.transform.matrix
And it worked, amazing thank you so much !!