Cycles render of 10179-1 Millennium Falcon UCS (LDraw OMR)
An addon for importing LDraw and Studio files into Blender 4.1 or later. Check out discussions for reading announcements, asking questions, or discussing new features. Report bugs or request new features in issues. Download the latest version from releases.
The goal of this project is to provided a reliable and performant way to import digital LEGO models into modern versions of Blender for rendering. This includes importing and rendering Bricklink Studio models or models built with LDraw editing programs.
Bricklink Studio models from newer versions of the program can be imported directly from .io files. Older Studio models that fail to import as .io files should be resaved with a newer version of Studio. This avoids an issue with password protection on older .io files. Studio can also export files as LDraw under File > Export As before importing into Blender.
Upgrading the addon requires uninstalling the addon, downloading the latest version from releases, and then reinstalling the addon. Windows users will need to disable the addon, restart Blender, and then uninstall the addon to properly remove the previous version.
This project is built from the ground up with performance in mind. The ldr_tools_blender addon can easily handle very large models with hundreds of thousands of parts. The addon will always instance geometry by part name and color to reduce memory usage and improve import times. Memory usage will be similar for both methods.
Blender itself does not scale well with the number of objects created in the scene. For large scenes with more than 10000 parts, it's recommended to use "Geometry Nodes" as the instance type before importing. Geometry nodes make the individual objects harder to edit but avoids most of the Blender overhead for scenes with high object counts.
For scenes that don't need to be rendered up close, setting the resolution to "Normal" and stud type to "Normal" to remove stud logos can greatly reduce the number of vertices.
A Rust library for working with LDraw files. This performs all the parsing and geometry handling. This project can be used in
other Rust projects by adding the following line to the Cargo.toml. ldr_tools is used for loading models in the ldr_wgpu renderer.
ldr_tools = { git = "https://github.com/ScanMountGoat/ldr_tools_blender" }
Python bindings to ldr_tools using PyO3. This enables ldr_tools to be usable in Blender. ldr_tools_py makes heavy use of numpy arrays to reduce the overhead for converting data from Rust to Python to Blender.
The Blender addon for importing LDraw files making use of ldr_tools_py. This is not a pure Python project. See the building instructions for details on how to build this from source.
The easiest way to see the steps used to create a new release is to check the release.yaml script that runs using Github actions. See development for working on your personal machine. See contributing for contributing to this project.
LDraw™ is a trademark owned and licensed by the Jessiman Estate, which does not sponsor, endorse, or authorize this project.
LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this project.
$ claude mcp add ldr_tools_blender \
-- python -m otcore.mcp_server <graph>