Add-on for importing and exporting PCD files from Blender 2.8+.
python-lzf
will be used, if installed, when importing compressed pointclouds.
Download the latest zip archive (pcd-io.zip) from the releases page.
Open Blender and navigate to:
Edit -> Preferences -> Add-ons -> Install
When prompted select the zip file pcd-io.zip
.
Afterwards you will see a screen like in the following image.
NOTE: You must enable the plugin by clicking the box shown in the screenshot before you can use it!
After installing this plugin, there are two ways to import and export PCD files.
You can import and export PCD files from the File menu (shown in first screenshot):
File -> Import -> Point Cloud Data (.pcd)
File -> Export -> Point Cloud Data (.pcd)
You can also import and export PCD files programatically. For example:
bpy.ops.import_mesh.pcd(filepath="/home/username/pointcloud_to_import.pcd")
bpy.ops.export_mesh.pcd(filepath="/home/username/output_pointcloud.pcd")
/home/username/thing.pcd
, rather than ~/thing.pcd
.