jonnysp / LDR2C4D

a simple LDraw Import Plugin for Cinema 4D
MIT License
2 stars 0 forks source link

.ldr file import error (AttributeError: 'NoneType' object has no attribute 'Name') #1

Closed Zsolt98 closed 1 year ago

Zsolt98 commented 2 years ago

I would like to open .ldr file that converted from LDD .lxf file, and I got this error message when I open it in Cinema4D R19.

Console output:


       _           
      [_]          
   / |   | \       
  () '---'  C      
    |  |  |        
    [=|=]          

LDR2C4D - 1.0.3


Traceback (most recent call last): File "'LDR2C4D.pypv'", line 956, in Command File "'LDR2C4D.pypv'", line 1115, in Load AttributeError: 'NoneType' object has no attribute 'Name'

Try with other .ldr file:

Traceback (most recent call last): File "'LDR2C4D.pypv'", line 956, in Command File "'LDR2C4D.pypv'", line 1115, in Load AttributeError: 'NoneType' object has no attribute 'Name'

jonnysp commented 2 years ago

can you upload the ldr file?

Zsolt98 commented 2 years ago

Yes, there is the ldr file: https://gist.github.com/Zsolt98/2f4769690be75242e5926b71948b968b

and there is .mpd file: https://gist.github.com/Zsolt98/45ba1c9b4fa54a5d51304336fc4c28d9 it is also don't work

jonnysp commented 2 years ago

Thanks.

I have no longer R19 to test.

In my R20 it works!

grafik

Do you have the current LDRAW library?

you can also use Blender with LDRAW Plugin, then Export as OBJ or compatible Fileformat to im port in Cinema4D

good look.

jonnysp commented 2 years ago

or try my https://github.com/jonnysp/LDD2C4D plugin

Zsolt98 commented 2 years ago

Yes, I updated 2 days ago the LDRAW library. I think in my library there are older .dat files, that occurred the error. (I will try with new dowload)

I tried your LDD plugin, but the load model button is inactive. What file is needed to select as database? This is the 1.0.4 version. image

Zsolt98 commented 2 years ago

Somehow the LDD plugin finally worked, and also get an error 😅

Console output:


       _           
      [_]          
   / |   | \       
  () '---'  C      
    |  |  |        
    [=|=]          

LDD2C4D - 1.0.4


       _           
      [_]          
   / |   | \       
  () '---'  C      
    |  |  |        
    [=|=]          

LDR2C4D - 1.0.3


Database Brickversion: 2670 Database OK. Traceback (most recent call last): File "'LDD2C4D.pypv'", line 442, in Command File "'LDD2C4D.pypv'", line 538, in Load File "'LDD2C4D.pypv'", line 94, in init File "C:\Program Files\MAXON\Cinema 4D R19\resource\modules\python\Python.win64.framework\lib\zipfile.py", line 756, in init self.fp = open(file, modeDict[mode]) IOError: [Errno 2] No such file or directory: 'E:\police car 7236.lxf'

jonnysp commented 2 years ago

hi i have installed R19 and tryed LDR2C4D - 1.0.3

in my case it works

grafik

maybe you can reinstall r19 or try on another computer

good luck