hello,
I've to adapt some python script written for the old photoscan version (1.0.4) to the new one, but I've some issues...
In a script I have some chunks and I have to merge them, but in the new python version I don't know how to reference the merged chunk
so, first of all I align the chunks:
doc.alignChunks(doc.chunks, doc.chunks[0], method="points", fix_scale=False, accuracy=PhotoScan.HighAccuracy, preselection=True, filter_mask=False, point_limit=80000)
then merge them:
doc.mergeChunks(doc.chunks, merge_dense_clouds=False, merge_models=True, merge_markers=False)
BUT NOW, HOW CAN I REFERENCE THE MERGED CHUNK? the following statements return me error:
doc.chunk.buildModel(surface=PhotoScan.HeightField, interpolation=PhotoScan.EnabledInterpolation, face_count=PhotoScan.MediumFaceCount, source=PhotoScan.DenseCloudData)
doc.chunk.buildTexture(blending=PhotoScan.MosaicBlending, color_correction=False, size=4096)