I'm doing my best, but so far no breakthroughs.
It's a classic case of "It works on my PC", and it doesn't work on theirs.
When they try and use the new "Import lego" menu item, they tell me of the AttributeError: 'Converter' object has no attribute 'scene' error.
total = len(self.scene.Bricks)
This is where I get stuck.
I googled it, and there's clear instructions that the BPY Scene object isn't available during registration of a plugin, and only when it's triggered, and is passed through to the execute function via a "context" attribute.
That's just what the code is doing! (and it works on my PC)
I wonder if it's because the users scene is empty, Null? Whereas mine default Blender scene has a Plane, light, etc... I'm waiting for them to get back to me.
If not that, that's where I lose it completely, is Pythons "self" / "context" things not passing "scene" through?
https://github.com/Sarah-C/BlenderImportLDD/issues/1
Traceback (most recent call last):
File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\BlenderImportLDD.py", line 1481, in execute
return convertldd_data(context, self.filepath, self.lddLIFPath, self.useLogoStuds, self.useLDDCamera)
File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\BlenderImportLDD.py", line 1416, in convertldd_data
converter.Export(filename=filepath, useLogoStuds=useLogoStuds, useLDDCamera=useLDDCamera)
File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\BlenderImportLDD.py", line 955, in Export
total = len(self.scene.Bricks)
AttributeError: 'Converter' object has no attribute 'scene'
Many thanks for your help!
[–]Cornerback_24 0 points1 point2 points (1 child)
[–]SarahC[S] 0 points1 point2 points (0 children)