ACRKITT
ply can be save directly with o3d:
import open3d as o3d
# Assuming you have already generated the point cloud (pcd)
if inPointCloud:
points = inPointCloud.getPoints().astype(np.float64)
pcd.points = o3d.utility.Vector3dVector(points)
colors = (cvRGBFrame.reshape(-1, 3) / 255.0).astype(np.float64)
pcd.colors = o3d.utility.Vector3dVector(colors)
# Export to PLY format
o3d.io.write_point_cloud("output.ply", pcd)
print("Point cloud has been saved to output.ply")
For .tiff, I'm not sure if it is possible, unless you make a "screenshot" and save it as an image.
Thanks
Jaka