Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: HenriPierre on October 30, 2012, 03:54:41 PM

Title: chunk.optimize does not work
Post by: HenriPierre on October 30, 2012, 03:54:41 PM
Hello

on the below code :
Code: [Select]
doc = PhotoScan.app.document
chunk = doc.chunks[0]
chunk.optimize()
chunk.optimize() raises an error "AttributeError: 'PhotoScan.Chunk' object has no attribute 'optimize'"
I tried chunk.optimize(True, True, True), same error.
I tried on the same object, exportReport and this method works.

What happens ?

Also, one more question, in the documentation, default values for optimize parameters are true, true, true while in the above text, the types are bool, float, float. I suppose that, according to the desktop
app, the correct types are bool, bool, bool. Exact ?

I'm using photoscan pro 0.9

Regards
Henri
Title: Re: chunk.optimize does not work
Post by: Alexey Pasumansky on October 30, 2012, 04:06:31 PM
Hello Henri,

Have you tried chunk.optimizePhotos()? I think this should work in 0.9.0.
Title: Re: chunk.optimize does not work
Post by: HenriPierre on October 30, 2012, 04:50:11 PM
It works.

Thanks Alexey
Julien