Subject:
|
Re: Blender LDraw support
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 16 Aug 2004 16:36:18 GMT
|
Viewed:
|
1967 times
|
| |
| |
On Sat, 14 Aug 2004 11:15:07 +0000, Stefan Garcia wrote:
> > 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.
>
> I found this chunk:
>
> libdirs=
> '/home/yann/Blender/ldraw/ldraw/p','/home/yann/Blender/ldraw/ldraw/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?
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 libdirs line to something like:
libdirs=['c:/ldraw/p', 'c:/ldraw/parts']
> Here's the full error message:
>
> I get this when I load blender:
> 'import site' failed; use -v for traceback sys_init:warning - no
> sitedirs added from site module.
That's from Blender, and indicates that it didn't find the full Python
library. I don't think this script requires that.
> This is the error message generated when I try to import a dat: Failed
> to find 41748.dat
> Traceback <most recent call last>:
> File "<string>", line 333, in loaddat File "<string>", line 295, in
> fromFile File "<string>", line 263, in loadline File "<string>", line
> 110, in getmdl
> UnboundLocalError: local variable 'fil' referenced before assignment
That is indeed the result of it not finding a requested part (in this case
41748.dat). Not very elegant, I know, but I'm rewriting that code anyway.
|
|
Message has 1 Reply: | | 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)
|
Message is in Reply To:
| | 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)
|
17 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|