Lite Script Add-on Issue
Qwerty7556 started this discussion in Bug Reporting

Hi,
First off, the new add-on version of the Blender script is a stroke of genius, but unfortuitously I am experiencing one slight issue…it is not working.
Actually, it is only the import process that is failing, sending some error messages and no bricks into the scene.

  1. The first error message says that in init.py “Line 499, in execute return importMecabrick(Self, context, self.filepath)”

  2. The second also says that in init.py “Line 168, in ImportMecabricks if bpy.app.version <=(2,78,0) and Useprincipled: NameError: name “use principled is not defined””

  3. And the last little bit of text just states: “location: <unknown location>😶1” (Apparently computers have taking to using some sort of emoji in their reports? 😛)

Looking at the error messages with my somewhat untrained software mind, the seemingly most obvious thing regards the ≤2.78.0...I am using Blender 2.78 and the newest iteration of the script—I have also uninstalled and reinstalled the script multiple times (completely deleting it from my downloads and from Blender’s add-on source folder) to no avail. Is there something that I am doing wrong; am I just using an “outdated” version of Blender; or is there some other reason? 😕 Also, is anyone else having this problem as well or is it just me overlooking the obvious?
Thanks in advance,
Qwerty7556

8 replies · Page 1 of 1

I use the 2.78 too. Same problem as I try to import the mad scientist quadcopter that was previosly exported as collada file, grouped by geometry and with lego logo activated.

Avatar of Scrubs
Administrator

What operating system are you using. I tried macos and Windows and it is working fine. Are you using the production version of blender which is 2.78c (2.78.0) or a daily build?

Please use the code tag in the forum to put the code from the console. It is way easier to read.

@visionary. Don't use a model that has been exported a while ago. Re-export it again after clearing your browser cache.

I am using MacOS Sierra v10.12.3 and Blender v2.78c.

Have you re-downloaded the models you are importing? I also got a strange error message first time i tried an old model before re-downloading it.

Edit: Sorry didn´t read scrubs post...

Avatar of Scrubs
Administrator

@Qwerty7556 Make sure that in the preferences, 'Use principle shader' is unticked. It shall not be possible to tick it anyway. 2.78c doesn't have this new shader. Where did you install it? There are two possible places for macos. It can be inside the blender package or in the App Support folder.

If you manually uninstall it , you need to remove the whole 'mecabricks' folder that includes init.py and a folder named materials.

Avatar of Scrubs
Administrator

Ok, I think I found something in the code that could explain that. I will publish a new revision tonight that shall hopefully solve it.

Avatar of Scrubs
Administrator

Download new version 2.0.2 it shall be fixed.

Yes, thank you, it is working perfectly now. 😃

Advertising
4 participants
Avatar of Qwerty7556
Avatar of Scrubs
Avatar of visionarybricks
Avatar of Sealund

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.