In the exported PDF file, how to match the rotation center and model center?
---
I have the following code:
# sample.py
import PhotoScan
app=PhotoScan.app
doc = app.document
doc.open('project.psx')
chunk = doc.chunk
print(app.viewpoint.coo)
app.viewpoint.coo=chunk.region.center
chunk.exportModel('out.pdf', format=PhotoScan.ModelFormat.ModelFormatPDF)
print(app.viewpoint.coo)
and run in Windows PowerShell:
PS > & 'C:\Program Files\Agisoft\PhotoScan Pro\photoscan.exe' -r sample.py
LoadProject
loaded project in 0 sec
Vector([0.0, 0.0, 0.0])
ExportModel
Vector([0.0, 0.0, 0.0])
PS >
'app.viewpoint.coo' is not refrected,then the model in pdf isn't shifted.
Is there a way to move the view point in a exported pdf?
Thanks.