I find online the code for the creation of PointCloud from an object in a scene.
The code is here: Code .
Now I need to save this pointcloud object to a file but when I export the file with blender my object is not in a file and the same with the script:
from pyntcloud import PyntCloud blend_file_path = "/Users/marcomameli/Downloads/" directory = os.path.dirname(blend_file_path) target_file = os.path.join(directory, 'pointcloud.obj') bpy.ops.export_scene.obj(filepath=target_file,use_selection=True)
I obtain the file obj and mil but when I open it in a online tool to visualize the this file I have an error.
The tool is: Online 3D View