When i try to load a shapefile or KML through the following code:
app = PhotoScan.Application()
doc = PhotoScan.app.document
chunk=doc.chunks[0] #this is a chunk with an orthomosaic, sparse point cloud, mesh and cameras
chunk.importShapes(path="pathtoshapefile.shp",replace=False,boundary=PhotoScan.Shape.OuterBoundary)
then the system crashes. Since I saw nothing like this issue on the forum i would like to know if anyone succesfully loaded a shapefile through python. Loading the shapefile works when i do it manually.