Extensions:2.4/Py/Scripts/Import/LDRAW 2

提供: wiki
< Extensions:2.4‎ | Py‎ | Scripts‎ | Import
移動先: 案内検索
Ldraw (.dat)...
Import Lego DATA File Format (*.dat)
UI location Group: Import
Version 0.01 - 2004.04.18 Author(s) Oyster
Blender 2.32 License Blender Artistic Licence (BAL)


Executable information
File name lego_import.py
Current version download LEGO importer and exporter in this zip file:lego_import_export_001.zip (2004.04.18)

http://www.newsmth.net/att.php?p.284.8754.952.zip


Links dedicated thread in Python & Plugins forum at Blender Artists


Usage

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


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"


Additional Information

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


Credits

Thanks go to:

  • the author Oyster

History

v0.01 - 2004.04.18 by Oyster
- Initial release