Forum

Show Posts

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.


Topics - xyz

Pages: [1]
1
Python and Java API / AttributeError, but why?
« on: February 04, 2021, 03:52:01 PM »
Hi,

I want to automate gradual selection filters. As a start i tried the following code, exactly as written in the python manual:

Code: [Select]

import Photoscan
doc = PhotoScan.app.document

project_path = "G:\\data\test\\"
project_name = "test"

chunk = PhotoScan.app.document.chunk
treshold = 0.5
f = PhotoScan.Filter.ReprojectionError()
f.init(chunk, criterion = PhotoScan.PointCloud.Filter.ReprojectionError)
f.selectPoints(threshold)

doc.save()

print("Finised")



However, i keep get the message:
AttributeError: type object 'PhotoScan.PointCloud' has no attribute 'Filter'

What is missing?

Thanks



Pages: [1]