Forum

Author Topic: turn camera reference on/off using python api  (Read 2319 times)

nuballawalla

  • Newbie
  • *
  • Posts: 2
    • View Profile
turn camera reference on/off using python api
« on: May 30, 2022, 02:31:03 PM »
Hi! I want to to turn the reference data for specific cameras off/on using the python api in metashape pro. Is this possible?

Thanks,
D

Paulo

  • Hero Member
  • *****
  • Posts: 1360
    • View Profile
Re: turn camera reference on/off using python api
« Reply #1 on: May 30, 2022, 02:48:57 PM »
Hello,

given a camera, then to enable/disable camera reference you use
Code: [Select]
camera.reference.enabled = True # turn reference on
camera.reference.enabled = False # turn reference off
Best Regards,
Paul Pelletier,
Surveyor