is there a python script or convertor for MLcad/Ldraw files?


(Dittohead) #1

is there a python script or convertor for MLcad/Ldraw files? thanx :smiley:


(cree) #2

Leocad exports 3ds files. You can import the 3ds file into truespace 1. There is a free legal copy of the first version of truespace at http://www.pcplus.co.uk/article.asp?ID=8556. Once you are in truespace, you can save the file as a .cob file. There is a python script called Radiosity import export suite v.03 that imports .cob files into blender at http://ourworld.compuserve.com/homepages/scorpius/blender_suites.
htm

You can import into lego files through this complicated process into blender, and it will import accurately without having to tweak the meshes. You might have to re-scale and re-orient your model. The only problem is that it can not import the original lego colour on the mesh. You have to re-assign textures and colour in blender. Hope this helps. I know its a long process but it works for me.


(cree) #3

Leocad exports 3ds files. You can import the 3ds file into truespace 1. There is a free legal copy of the first version of truespace at http://www.pcplus.co.uk/article.asp?ID=8556. Once you are in truespace, you can save the file as a .cob file. There is a python script called Radiosity import export suite v.03 that exports .cob files to Blender at http://ourworld.compuserve.com/homepages/scorpius/blender_suites.htm

You can import into lego files through this complicated process into blender, and it will import accurately without having to tweak the meshes. You might have to re-scale and re-orient your model. The only problem is that it can not import the original lego colour on the mesh. You have to re-assign textures and colour in blender. Hope this helps. I know, itโ€™s a long process, but it works for me.


(Dittohead) #4

Thanx. :smiley:


(djphotoduck) #5

look here:

http://www.ldraw.org/download/win/

There are several utilities to convert the dat files from MLCAD or LEOCAD to other formats. I have use the 3DWIN 4 program listed at the top of the above page. It works pretty good and its free.

I think there is also a utility somewhere that will convert the DAT files directly to dxf which you can import directly into Blender. If I find it Iโ€™ll let you know.