Hello Fabien,
if you have a 3d Model or dense point cloud as a surface, then for each camera, the distance between camera perspective center and point on model or point cloud would be:
chunk = Metashape.app.document.chunk
surface = chunk.point_cloud
chunk.transform.scale * (ps.Vector(camera.center - surface.pickPoint(camera.center,camera.transform.mulp(ps.Vector((0,0,1))))).norm())
Out[21]: 2024-06-25 13:09:12 52.70104912784214