Forum

Author Topic: capture model view 1.6.3  (Read 6221 times)

mcstieg

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
capture model view 1.6.3
« on: May 17, 2020, 04:19:05 PM »
Hello everybody!

the Python API in 1.6.3 seems to be wrong.
Which arguments needs the function captureView to work?

Thank you!  ;)

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: capture model view 1.6.3
« Reply #1 on: May 17, 2020, 04:35:37 PM »
It will help if you show the code that you are using.

mcstieg

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: capture model view 1.6.3
« Reply #2 on: May 18, 2020, 08:29:20 AM »
You can see my code in the picture.
It was written in the python console.

 

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: capture model view 1.6.3
« Reply #3 on: May 18, 2020, 11:08:27 AM »
You can see my code in the picture.
It was written in the python console.

Sorry, i did not see the other attachment (super small on a 4k monitor).

And indeed there is something funny going on (TypeError: descriptor 'captureView' requires a 'Metashape.Application.ModelView' object.)


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15354
    • View Profile
Re: capture model view 1.6.3
« Reply #4 on: May 18, 2020, 06:49:57 PM »
Hello mcstieg,

Please try the following:
Code: [Select]
image = Metashape.app.model_view.captureView(width = 300, height = 150, transparent = False, hide_items = True)
image.save(path)
Best regards,
Alexey Pasumansky,
Agisoft LLC

mcstieg

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: capture model view 1.6.3
« Reply #5 on: May 19, 2020, 08:25:49 AM »
Thank you!  ;D