Import script for the LDraw file format (.mpd, .ldr, .dat) #36232

Closed
opened 2013-07-20 15:04:14 +02:00 by kevin loddewykx · 4 comments

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.66
Category: Import Export
Python: 3.2
Script name: Ldraw importer
Author(s): Kevin Loddewykx
Status: Open

%%%
This script allows you to import your lego models created with the LDraw parts library.
The LDraw Steering Committee has given their permission to distribute this plugin.

It supports all the three file extensions: .mpd, .ldr and .dat
Support colors provided by: LDConfig.ldr, direct colors and blended colors (through nodes) (http://www.ldraw.org/article/218.html#colours)
It needs the LDConfig.ldr file which contains the color definitions and the parts library to work, which can be found here: http://www.ldraw.org/downloads-2/downloads.html

To utilise the script place the two files in a subfolder in the addons folder of blender and activate it inside blender under the user preferences -> Addons
When you want to import a model you need to take these steps

  1. Activate the script under File -> Import -> Ldraw
  2. Navigate to your model and select it
  3. Copy the filepath of the LDConfig.ldr to the first input field under the options menu *
  example: C:\Users\username\Desktop\ldconfig.ldr   
  1. Copy the filepath of the unzipped LDraw library to the second input field under the options menu *
  example: C:\Users\username\Desktop\ldraw       where the ldraw folder contains the subfolders parts and p
  1. Adjust the scaling to your preferences and the remove doubles
  2. Click on the button "Import LDraw"
    (* = forward and backslash are supported)

TODO:
add support for, CHROME, METAL, RUBBER, .... found in the color config file and optimize alpha (Need material artist)
maybe add edge rendering if possible%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Upload **Blender**: 2.66 **Category**: Import Export **Python**: 3.2 **Script name**: Ldraw importer **Author(s)**: Kevin Loddewykx **Status**: Open %%% This script allows you to import your lego models created with the LDraw parts library. The LDraw Steering Committee has given their permission to distribute this plugin. It supports all the three file extensions: .mpd, .ldr and .dat Support colors provided by: LDConfig.ldr, direct colors and blended colors (through nodes) (http://www.ldraw.org/article/218.html#colours) It needs the LDConfig.ldr file which contains the color definitions and the parts library to work, which can be found here: http://www.ldraw.org/downloads-2/downloads.html To utilise the script place the two files in a subfolder in the addons folder of blender and activate it inside blender under the user preferences -> Addons When you want to import a model you need to take these steps 1) Activate the script under File -> Import -> Ldraw 2) Navigate to your model and select it 3) Copy the filepath of the LDConfig.ldr to the first input field under the options menu * ``` example: C:\Users\username\Desktop\ldconfig.ldr ``` 4) Copy the filepath of the unzipped LDraw library to the second input field under the options menu * ``` example: C:\Users\username\Desktop\ldraw where the ldraw folder contains the subfolders parts and p ``` 5) Adjust the scaling to your preferences and the remove doubles 6) Click on the button "Import LDraw" (* = forward and backslash are supported) TODO: add support for, CHROME, METAL, RUBBER, .... found in the color config file and optimize alpha (Need material artist) maybe add edge rendering if possible%%%

Changed status to: 'Open'

Changed status to: 'Open'
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Brendon Murphy self-assigned this 2017-02-24 09:56:20 +01:00
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

no activity 2 years, closing.
thanks for participating,. feel free to submit again during the 2.8 series.

no activity 2 years, closing. thanks for participating,. feel free to submit again during the 2.8 series.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#36232
No description provided.