| | Blender LDraw support
|
|
I hope this isn't off topic for this list. I've begun writing some scripts for Blender to import (and eventually export) LDraw DAT files. Cropped screenshot of result (pieces 105, 10 and 73057): (URL) location (currently 5KB): (2 URLs) features: (...) (20 years ago, 12-Jul-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) I'm not a Blender user. Yet. I would like MPD support if/when I start using Blender and your script. (20 years ago, 12-Jul-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) Well, I'm a bit further along now. No MPD support yet, but it'll be easy to add. It now supports hierarchical loading with piece recognition, loading even the Masakari model in a tolerable amount of time. In the process I noticed not all parts (...) (20 years ago, 15-Jul-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) Part detection is problematic due to changes over time in the library. For reference, LDView uses the following to identify parts: File is in the Parts directory, and isn't a descendent of any other parts at the time the file is loaded (sub (...) (20 years ago, 15-Jul-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
Hopefully you're still out there... This is really great that you've written this! Makes things alot easier for us who aren't that good with modeling tools. However, I'm having some problems, hopefully you can help me out? I try to import ldrs and (...) (20 years ago, 12-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) In the current form the path to LDraw primitives and parts (ldraw/p and ldraw/parts) are hardcoded into the script. You'll need to change those before it will load anything referring to the part library correctly. If that doesn't help I'd (...) (20 years ago, 13-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) I found this chunk: libdirs= '/home/yann/Blender/...aw/parts'] def getmdl(path, name): Is this what I have to change? If so, do I just copy the paths the way they are in Explorer? (...) Here's the full error message: I get this when I load (...) (20 years ago, 14-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) Yes, that is the place. Explorer is probably showing backslashes (\) rather than slashes; you'll have to change those to either \\ or /. A future version of this script will probably try to locate your LDraw directory. So you could change the (...) (20 years ago, 16-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
Well, I fixed that, and it seems to be trying to load the model (I get a busy icon and such), but now it's hanging on another section. I now get this: Traceback <most recent call last>: File "<string>", line 340, in loaddat File "<string>", line (...) (20 years ago, 16-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) Neither am I. However, line 318 isn't in childreBobj in the most recent public version of the script. Since that's the only one that works in Blender 2.34 (and it probably has trouble with some types of files anyway, such as if they contain (...) (20 years ago, 17-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
I've worked a bit more on my Blender LDraw import script. Recent additions: * Requires Blender 2.34 for some convenient functions. * Creates materials for each LDraw colour used, but does not fill in colours. * ldrawdir is now high in the script and (...) (20 years ago, 17-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
(...) Thanks alot for this work. It's very much the combination of tools that I am looking forward to working with. We mentioned LCad/Blender ties quite a bit at Brickfest this weekend. (...) (20 years ago, 17-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
"Ooh, new script." *download* "Hm, fix path, load...will it work?" *jaw drops* DUDE, YOU ARE THE COOLEST PERSON EVER!!! THIS ROCKS!!! *head explodes from all the possibilities* "ewww..." -Stefan- (20 years ago, 17-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
A little bit of extra work, and I'm ready (sort of) to present the first export capable edition. It outputs DAT or MPD files of the current scene, including STEP support. Script pack (since the script now is split in multiple files): (URL) of output (...) (20 years ago, 28-Aug-04, to lugnet.cad.dev)
|
|
| | Re: Blender LDraw support
|
|
I added a feature to automatically generate contour lines for exported objects, and reexported my 6575 model. I'm not sure it's quite the way it should be yet. Also set up a wiki page where I'd appreciate suggestions and questions. The wiki will be (...) (20 years ago, 2-Sep-04, to lugnet.cad.dev)
|
|
| | help with ldraw
|
|
Hey y'all- I was just working on my LDraw when I experienced a problem. On the four small dimension windows, the up-down, left-right scrolls have vanished. Is there a way I can retrieve them? (I don't know what I did). (20 years ago, 8-Oct-04, to lugnet.cad.dev)
|
|
| | RE: help with ldraw
|
|
right click in each window and select "show scroll bar" from the menu -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...ugnet.com] On Behalf Of vineethonkan Sent: 08 October 2004 16:12 To: lugnet.cad.dev@lugnet.com (...) (20 years ago, 8-Oct-04, to lugnet.cad.dev)
|