Forum

Author Topic: How do you check to see if a chunk already exists in the current document?  (Read 3692 times)

theYesMan

  • Newbie
  • *
  • Posts: 8
    • View Profile
How do you check to see if a chunk already exists in the currently open document?

Thanks.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14818
    • View Profile
Hello theYesMan,

You can check the length of doc.chunks list. It it is not zero, then there's at least one chunk.


Code: [Select]
if len(doc.chunks):
....
Best regards,
Alexey Pasumansky,
Agisoft LLC