Hello Pieter-Jan,
If you need to save the orthomosaic in the False Colors representation, then I suggest the following code:
chunk.raster_transform.formula=["B3/10000","B2/10000","B1/10000"]
chunk.raster_transform.false_color = [0, 1, 2] #this defines R-G-B channels order in the output
chunk.exportOrthomosaic("D:/test.tif", raster_transform=PhotoScan.RasterTransformPalette)
So you just need to correct one line and define the order of false RGB colors.
raster_transform.palette should be used to define the coloring profile that is applied to the index value in the defined range. It looks like the following dictionary:
{0.0: (0, 0, 255),
0.25: (0, 255, 255),
0.5: (0, 255, 0),
0.75: (255, 255, 0),
1.0: (255, 0, 0)}