From BlenderWiki

Jump to: navigation, search

[edit] Ldraw (LEGO Cad) (.dat) Exporter

[edit] About

Name Ldraw (.dat)... Version 0.01 - 2004.04.18
Export Lego DATA File Format (*.dat) License Blender Artistic Licence (BAL)
Menu Group: Import Blender 2.32
Author Oyster
Link(s) http://www.newsmth.net/att.php?p.284.8754.952.zip
Executable: lego_export.py Modules:
Data: External Dependencies:
Local Mirror: lego_import_export_001.zip (2004.04.18) - There are LEGO importer and exporter in this zip file
Additional information: None

[edit] Support


[edit] Usage

[edit] Instructions

1. copy *.py and lego.cfg to the Blender script directory
2. download Complete LDraw.org Parts Library from
  http://www.ldraw.org/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=2
  and decompress it with directory using winzip
  The car.dat and pyramid.dat is coming with
  http://www.ldraw.org/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=60
3. edit lego.cfg according to your installation in step 2
4. update your blender scripts menu. The script can be found under Export and Import


[edit] Known Issues

1. choice of simular colors. btw:The color is taken from http://isodomos.com/VPH/ColorLego
2. type 1 during reading data file
   see "asm in blender.jpg" and "asm in cad.jpg"


[edit] Additional Information

[edit] To-Do list

1. assign color to face. a mesh can have 16 materials at most, what if a Lego part has
   more than 16 colors? 
2. type 0, 5 when read data file
3. speed up. The re-index on vertices and faces needs a very big memeory, 
   and costs too much time. Maybe skip it and let the user "remove doubles". Well, 
   I prefer to a python interface to "remove doubles" very much. 
4. GUI


[edit] Credits

Thanks go to:

  • the author Oyster

[edit] History

v0.01 - 2004.04.18 by Oyster
- Initial release