Hello mikeb,
Here's a small code for conversion from meters to lat/long values. As source export resolution it takes the DEM resolution:
import PhotoScan, math
dx = dy = chunk.elevation.resolution
coord = PhotoScan.Vector([0,0,0])
cam_num = 0
for camera in chunk.cameras:
if not camera.transform:
continue
coord += chunk.crs.project(chunk.transform.matrix.mulp(camera.center))
cam_num += 1
crd = (1. / cam_num) * coord
#crd = chunk.crs.project(chunk.transform.matrix.mulp(chunk.region.center))
v1 = crd.copy()
v2 = PhotoScan.Vector([crd.x + 0.001, crd.y, crd.z])
vm1 = chunk.crs.unproject(v1)
vm2 = chunk.crs.unproject(v2)
res_x = (vm2 - vm1).norm() * 1000
#latitude
v2 = PhotoScan.Vector([crd.x, crd.y + 0.001, crd.z])
vm2 = chunk.crs.unproject(v2)
res_y = (vm2 - vm1).norm() * 1000
dx = dx / res_x
dy = dy / res_y
path = project_path + project_name + ".tif"
chunk.exportOrthomosaic(path, image_format=PhotoScan.ImageFormatTIFF, format = PhotoScan.RasterFormatTiles, dx=dx, dy=dy, raster_transform=PhotoScan.RasterTransformNone, write_kml=False, write_world=True)