Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: HenriPierre on October 30, 2012, 03:54:41 PM
-
Hello
on the below code :
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
-
Hello Henri,
Have you tried chunk.optimizePhotos()? I think this should work in 0.9.0.
-
It works.
Thanks Alexey
Julien