Forum

Author Topic: Script to increase region by 2x  (Read 1566 times)

MetaUser555

  • Newbie
  • *
  • Posts: 27
    • View Profile
Script to increase region by 2x
« on: August 16, 2019, 12:22:18 AM »
Hi,
I was looking for a simple python script to increase the size of the region by 2x so i'm not cutting off any part of the model during the dense cloud process
I've looked on the forum but all seem to be pretty specific to their own needs, just looking for a simplified version
Thanks for any help!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Script to increase region by 2x
« Reply #1 on: August 16, 2019, 06:21:26 PM »
Hello bolegna,

Try this one:

Code: [Select]
import Metashape
chunk = Metashape.app.document.chunk
chunk.region.size = 2 * chunk.region.size
Best regards,
Alexey Pasumansky,
Agisoft LLC