Add-on for importing and exporting PCD files from Blender 2.8+.
- Adds ability to view & edit point-clouds using Blender's built-in tools.
- No external dependencies. However, if installed -
python-lzf
will be used to speed-up decompression of binary_compressed clouds. - Supports exporting of PCD files in binary format.
- Supports importing of PCD files in ascii, binary, and binary_compressed formats.
- No support for coloured point-clouds (due to use of Blender mesh verticies).
- No support for exporting point-clouds in formats other than binary.
- No support for labelled point-clouds.
- No drag-and-drop support for importing/exporting files.
Download the latest zip archive (pcd-io.zip) from the releases page.
Drag and drop the zip file pcd-io.zip
into the Blender window.
Open Blender and navigate to:
Edit -> Preferences -> Add-ons
Click the small drop-down arrow at the top right of the dialog and select Install from disk...
.
When prompted select the zip file pcd-io.zip
.
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")
- Although you can't drag-and-drop .pcd files directly into the viewport (yet), you can drag-and-drop files into the file dialog to quickly navigate to the relevant folder.
- When exporting, ensure you have selected the items you wish to export. If no objects are selected in Blender, nothing will be exported and you may see an error.
- When exporting a pointcloud after making edits, make sure to exit the Edit Mode context (e.g. return to Object Mode context) otherwise your changes may not be reflected in the output file.
- If you have trouble with paths not being found when importing/exporting programatically, try using an absolute path and without path expansion. For example:
/home/username/thing.pcd
, rather than~/thing.pcd
.