Hi Alexey,
thank you for your reply!
I made some adaptions on the script but it still doesn´t work properly. Here is the current script with the error from the console
import PhotoScan
doc = PhotoScan.app.document
doc.open("project.psz")
chunk = doc.chunk
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, generic_preselection=True, reference_preselection=False)
chunk.alignCameras()
chunk.buildDenseCloud(quality=PhotoScan.MediumQuality)
chunk.buildDenseCloud(quality=PhotoScan.MediumQuality, filter=PhotoScan.NoFiltering, keep_depth=True)
chunk.buildModel(surface=PhotoScan.Arbitrary, interpolation=PhotoScan.EnabledInterpolation, source=PhotoScan.DenseCloudData)
chunk.buildUV(mapping=PhotoScan.GenericMapping)
chunk.buildTexture(blending=PhotoScan.MosaicBlending, size=4096)
doc.save()
path = "D:\\test\\"
print (path)
doc.save(path + "test.psz")
chunk.exportModel(path, binary=True, precision=6, texture_format=PhotoScan.ImageFormatJPEG, texture=True, normals=True, colors=True, cameras=False, udim=False, strip_extensions=False, format=PhotoScan.ModelFormatOBJ)
Error:
2017-08-14 10:23:27 File "C:/Program Files/Agisoft/PhotoScan Pro/python/Lib/site-packages/TEST_Patrick.py", line 19, in <module>
2017-08-14 10:23:27 chunk.exportModel(path, binary=True, precision=6, texture_format=PhotoScan.ImageFormatJPEG, texture=True, normals=True, colors=True, cameras=False, udim=False, strip_extensions=False, format=PhotoScan.ModelFormatOBJ)
2017-08-14 10:23:27 RuntimeError: Can't export model: D:\test\-14 10:02:31 TypeError: 'ImageFormat' is an invalid keyword argument for this function
>>>