Forum

Author Topic: chunk.optimize does not work  (Read 4900 times)

HenriPierre

  • Newbie
  • *
  • Posts: 13
    • View Profile
chunk.optimize does not work
« 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

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13912
    • View Profile
Re: chunk.optimize does not work
« Reply #1 on: October 30, 2012, 04:06:31 PM »
Hello Henri,

Have you tried chunk.optimizePhotos()? I think this should work in 0.9.0.
Best regards,
Alexey Pasumansky,
Agisoft LLC

HenriPierre

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: chunk.optimize does not work
« Reply #2 on: October 30, 2012, 04:50:11 PM »
It works.

Thanks Alexey
Julien