Forum

Author Topic: How to scale the 3d model with the marker cooridinate I have choosed?  (Read 3694 times)

JimXu

  • Newbie
  • *
  • Posts: 6
    • View Profile
I set 4 marker and their coordinates with python code, and now I want to update Transform with the 4 markers,  just like in GUI, choose these markers and press update Transform button.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15472
    • View Profile
Hello JimXu,

Providing that all the markers have at least two projections on the aligned images, the following code will apply the coordinate information to reference and scale the model:

Code: [Select]
chunk = Metashape.app.document
for marker in chunk.markers:
   marker.reference.enabled = True
chunk.updateTransform()
Best regards,
Alexey Pasumansky,
Agisoft LLC