doc = PhotoScan.app.document #current projectfor chunk in doc.chunks: doc.chunk = chunk #makes active #other processing