Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Remove empty chunks
« previous
next »
Print
Pages: [
1
]
Author
Topic: Remove empty chunks (Read 6748 times)
r0xx
Jr. Member
Posts: 73
Remove empty chunks
«
on:
May 20, 2015, 05:05:23 PM »
Hello
How can I automatically remove empty chunks (Without any cameras inside) from the document?
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 15635
Re: Remove empty chunks
«
Reply #1 on:
May 20, 2015, 05:09:08 PM »
Hello r0xx,
Code:
[Select]
for chunk in list(doc.chunks):
if not len(chunk.cameras):
doc.remove(chunk)
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
r0xx
Jr. Member
Posts: 73
Re: Remove empty chunks
«
Reply #2 on:
May 20, 2015, 05:42:22 PM »
Thanks alot!
Logged
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Remove empty chunks
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)