Hello Sven,
Total error represent the RMSE for the components, please see the updated code for total error calculation below:
import math, Metashape
chunk = Metashape.app.document.chunk #active chunk
total_error = Metashape.Vector([0,0,0])
n = 0
for camera in chunk.cameras:
error = chunk.transform.matrix.mulp(camera.center) - chunk.crs.unproject(camera.reference.location)
m = chunk.crs.localframe(chunk.transform.matrix.mulp(camera.center))
error = m.mulv(error)
print(camera.label, error.norm(), error.x, error.y, error.z)
total_error += Metashape.Vector([error.x ** 2, error.y **2, error.z **2])
n += 1
for i in range(len(total_error)): #printing total X, Y, Z errors
print(math.sqrt(total_error[i] / n))