Importer fails to import model
TravisDeVito started this discussion in Bug Reporting

I was attempting to import a T 34 model (https://www.mecabricks.com/sv/models/3X8jO7d9jYJ) using the mecabricks advanced addon. whenever I try to import the model as a .dae it gives me the following error in the console:

Traceback (most recent call last):
File "C:UsersUserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsmecabricks__init__.py", line 830, in execute
return importMecabricks(self, context, self.filepath, settings)
File "C:UsersNNAppDataRoamingBlender FoundationBlender2.79scriptsaddonsmecabricks__init__.py", line 261, in importMecabricks
replaceMaterials(object, materials[object.name], instances, meshes, debug)
File "C:UsersNNAppDataRoamingBlender FoundationBlender2.79scriptsaddonsmecabricks__init__.py", line 410, in replaceMaterials
makeMaterial(material)
File "C:UsersNNAppDataRoamingBlender FoundationBlender2.79scriptsaddonsmecabricks__init__.py", line 532, in makeMaterial
bumpNode.image = imglib[file]
KeyError: 'bpy_prop_collection[key]: key "3665_bump.png" not found'

location: <unknown location>😶1

The result is a few bricks from the model being imported, but most are missing.
Here is a screen cap of the blender window --> https://imgur.com/a/lyB2ovO
Hopefully someone can point me in the right direction. Also, i have never had problems importing any meshes before.
Thanks.

3 replies · Page 1 of 1

"KeyError: 'bpy_prop_collection[key]: key "3665_bump.png" not found'"
It can't find the bump maps. I think you may have moved around the dae file without copying the rest?

Update: I took the model and saved it as a private model then downloaded, unzipped and imported it without issue

Avatar of Scrubs
Administrator

As per Sim comment, this is likely that you moved the texture folder before importing the model. This is what the error message says.
Making the model private doesn’t change anything to the files and geometry exported.
New version of the addon for Blender 2.80 and new format zmbx ensure that this type of mistake can not be done as everything is embedded in one file.

Advertising
3 participants
Avatar of TravisDeVito
Avatar of Sim
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.