Model Import: IndexError: list index out of range
IstakaCiti started this discussion in Model Export and Render

Hi Scrubs,

I am getting following error while importing the model, I saw your post on Eurobricks so cleared cache and tried again, still facing the same issue.

Not sure if it model specific issue, tried couple of other models for which it worked fine.

This error is for 70173:

Traceback (most recent call last):
File "C:UsersdmzAppDataRoamingBlender FoundationBlender2.78scriptsaddonsmecabricks__init__.py", line 487, in execute
return importMecabricks(context, self.filepath)
File "C:UsersdmzAppDataRoamingBlender FoundationBlender2.78scriptsaddonsmecabricks__init__.py", line 212, in importMecabricks
objMaterials = parseObjMaterials(object.material_slots)
File "C:UsersdmzAppDataRoamingBlender FoundationBlender2.78scriptsaddonsmecabricks__init__.py", line 286, in parseObjMaterials
materials[0]['name'] += '_' + data['bump']
IndexError: list index out of range

location: <unknown location>😶1

location: <unknown location>😶1

Let me know if you need the full log or want me to share the models.

Istakaciti

5 replies · Page 1 of 1

Further narrowed down the problem,

Fails when exported with "Group by Geometry"
Works when exported with "Group By Geometry and Color"

Avatar of Scrubs
Administrator

Hello,
Sorry for missing your post in the forum. I am actually working on this issue. Blender is a pain to assign materials but I will find a solution.

OK, as the alternative is working there is no pressing need.

Avatar of Scrubs
Administrator

I uploaded a new revision (1.0.1). It shall fix all these issues. I had to re-think completely this part of the script.
Browser cache has to be cleared as the workshop exporter code has changed.

Its working fine now (with updated lite plugin), thanks Scrubs!

Advertising
2 participants
Avatar of IstakaCiti
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.