2 Posts
Hi,

I just bought the advanced Addon for Blender, but afterwards im not able to import a model.

I already tried the light version and Blender 2.80.

I made my model in Stud.io and imported the stud.io file in mecabrick. Then exported it to .zmbx

It always says:

Traceback (most recent call last):
File "/Users/kerstenburkhardt/Library/Application Support/Blender/2.80/scripts/addons/mecabricks/__init__.py", line 486, in execute
return import_mecabricks (OOOOO0OOO00O0OO0O ,O0OO0O000O00O00OO ,OOOOO0OOO00O0OO0O .filepath ,OOO0O0OO0O0O00OO0 )#line:1194
File "/Users/kerstenburkhardt/Library/Application Support/Blender/2.80/scripts/addons/mecabricks/__init__.py", line 14, in import_mecabricks
import_model (O00OO000O0OOOO0OO ,OO00OO0O00O0000OO );#line:53
File "/Users/kerstenburkhardt/Library/Application Support/Blender/2.80/scripts/addons/mecabricks/__init__.py", line 28, in import_model
O0OOOO0OOO0O0O000 =make_materials (O00OOOO00O00OO0O0 [2 ],O00OOOO00O00OO0O0 [3 ])#line:214
File "/Users/kerstenburkhardt/Library/Application Support/Blender/2.80/scripts/addons/mecabricks/__init__.py", line 75, in make_materials
O000O000O0O0OO000 =make_material (O00O0000O00O0OOOO ,OOOO00O0000OO0OO0 )#line:312
File "/Users/kerstenburkhardt/Library/Application Support/Blender/2.80/scripts/addons/mecabricks/__init__.py", line 81, in make_material
O0OOO0OO0OO0O0OO0 =MBColors [O0OOOOO00O0OOOOO0 [0 ]]#line:326
KeyError: 1199

location: <unknown location>:-1

location: <unknown location>:-1
6 Jan 2020, 14:37
3186 Posts
Hello kersten.
I guess you imported your model from LDraw in Mecabricks. I recently added material 1199 (internal Mecabricks reference for Rubber dark stone grey) and this material is not available yet in the Blender addon. A small bug in a the Mecabricks importer is replacing the common material 199 by this new one. Before exporting from Mecabricks, make sure to replace all parts with 1199 by material 199. It can be done in a couple of clicks using the select by material tool in Mecabricks. I will be back from overseas in a couple of days and I will fix that.

A brand new version of the addon will be available in a week or so to enjoy all the new features that have been working on in the past 6 months. This issue will also be fixed in the event a material is not know by the addon.
6 Jan 2020, 19:55
2 Posts
Great thanks, enjoy your last days and thanks for your great work
6 Jan 2020, 20:26
Page 1 of 1