Forum

Author Topic: How to match the rotation center and model center?  (Read 1511 times)

enimit

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to match the rotation center and model center?
« on: September 27, 2018, 04:09:30 PM »
In the exported PDF file, how to match the rotation center and model center?
---
I have the following code:

Code: [Select]
# 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:

Code: [Select]
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.
« Last Edit: September 28, 2018, 03:19:01 AM by enimit »