1
Python and Java API / Re: Mapping from regions in photos to point cloud
« on: June 16, 2022, 08:10:43 PM »
Hi,
I am reviving this topic. But I am having some problem and I have read the API documentation up and down and the whole py script added here and still can figure out what I am missing.
I am doing the same thing the OP is doing. I apply the script and I get the vertices with the projection coordinates. Somehow it only works with the point_cloud but not with the dense_cloud.
Anyway the problem is when creating the shape. I create an empty shape. But from there on I get the error
I am reviving this topic. But I am having some problem and I have read the API documentation up and down and the whole py script added here and still can figure out what I am missing.
I am doing the same thing the OP is doing. I apply the script and I get the vertices with the projection coordinates. Somehow it only works with the point_cloud but not with the dense_cloud.
Anyway the problem is when creating the shape. I create an empty shape. But from there on I get the error
Code: [Select]
shape.type = Metashape.Shape.Type.Polygon
2022-06-16 19:02:22 Traceback (most recent call last):
2022-06-16 19:02:22 File "<console>", line 1, in <module>
2022-06-16 19:02:22 AttributeError: type object 'Metashape.Shape' has no attribute 'Type'
The same happens with vertices, while Vertices it gives a read only error. has_z doesn't appear as an attribute either...What am I missing?