Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
How do you check to see if a chunk already exists in the current document?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do you check to see if a chunk already exists in the current document? (Read 3692 times)
theYesMan
Newbie
Posts: 8
How do you check to see if a chunk already exists in the current document?
«
on:
May 05, 2014, 04:10:51 AM »
How do you check to see if a chunk already exists in the currently open document?
Thanks.
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 14818
Re: How do you check to see if a chunk already exists in the current document?
«
Reply #1 on:
May 05, 2014, 08:01:02 AM »
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):
....
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
How do you check to see if a chunk already exists in the current document?
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)