Hello Wizyza,
in the referenced post i put a code to do just this:
chunk = Metashape.app.document.chunk
point_cloud = chunk.point_cloud
projections = point_cloud.projections
points = point_cloud.points
npoints = len(points)
tracks = point_cloud.tracks
point_ids = [-1] * len(point_cloud.tracks)
for point_id in range(0, npoints):
point_ids[points[point_id].track_id] = point_id
for camera in chunk.cameras:
nprojections = 0
if camera.type == Metashape.Camera.Type.Keyframe:
continue # skipping Keyframes
if not camera.transform:
continue
for proj in projections[camera]:
track_id = proj.track_id
point_id = point_ids[track_id]
if point_id < 0:
continue
if not points[point_id].valid:
continue
nprojections += 1
print(camera, nprojections, len(projections[camera]))
In layest API, just change chunk.point_cloud to chunk.tie_points and it should work...