Model Import: IndexError: list index out of range
IstakaCiti a commencé cette discussion dans 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 réponses · Page 1 sur 1

Further narrowed down the problem,

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

Avatar de Scrubs
Administrateur

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 de Scrubs
Administrateur

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!

Publicité
2 participants
Avatar de IstakaCiti
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.