Subject:
|
Re: Blender LDraw support
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 16 Aug 2004 16:36:18 GMT
|
Viewed:
|
1787 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
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: ![](/news/x.gif) | | 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:
![](/news/x.gif) | | 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: ![Blender LDraw support -Yann Vernier (12-Jul-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: Blender LDraw support -James Reynolds (12-Jul-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Yann Vernier (15-Jul-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Travis Cobbs (15-Jul-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Blender LDraw support -Stefan Garcia (12-Aug-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Yann Vernier (13-Aug-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Stefan Garcia (14-Aug-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Stefan Garcia (16-Aug-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Yann Vernier (17-Aug-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Stefan Garcia (17-Aug-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![help with ldraw -Vineet Honkan (8-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![RE: help with ldraw -William Howard (8-Oct-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Blender LDraw support -Yann Vernier (17-Aug-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: Blender LDraw support -Brian P. Gefrich (17-Aug-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Blender LDraw support -Yann Vernier (28-Aug-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Blender LDraw support -Yann Vernier (2-Sep-04 to lugnet.cad.dev)](/news/x.gif)
- 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
|
|
|
|