1
Bug Reports / Re: 2.2.1 build 20443 - can't decompress depth error
« on: October 07, 2025, 12:36:48 AM »
Resolved by re-running the depth maps. Must have been a corrupted file, as Alexey suggested.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
x = chunk.point_cloud.pickPoint(
camera.center, camera.unproject(point2D))If camera.center == None, then this function silently exits without throwing an error. It took a bit of frustrating debugging to find the reason why my script stopped without running to its end..#previous code
task = Metashape.Tasks.BuildPointCloud()
tasks.append(task)
#new code
task = Metashape.Tasks.RunScript()
task.code='''
import Metashape
doc = Metashape.Document()
doc.open("path\to\project.psx", ignore_lock = True)
chunk = doc.chunk
try:
chunk.buildPointCloud()
except Metashape.BadAllocationError: #just guessing how to catch errors
#code to split chunks here
'''
tasks.append(task)