cityjson / Up3date

A Blender add-on to import, edit and export 3D city models encoded in CityJSON v.1.0 format preserving geometries, attributes and semantics
MIT License
66 stars 12 forks source link

Cant Export .stl to CityJSON #23

Open kesslerf opened 9 months ago

kesslerf commented 9 months ago

Hello, I exported a 3D-Mesh from CloudCompare in .stl-format and imported it into blender. After changing geometry to origin I can see my model.

When I try to export it as cityJon I get the following error: Python: Traceback (most recent call last): File "C:\Users\felix\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Up3date-main__init__.py", line 124, in execute return exporter.execute() File "C:\Users\felix\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Up3date-main\core\objects.py", line 362, in execute CityObject_id,object_verts,object_faces = self.create_mesh_structure(city_object,objid,init_json) File "C:\Users\felix\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Up3date-main\core\objects.py", line 276, in create_mesh_structure print ("You either forgot to add lod as a custom property of the geometry, ", name, ", or 'lod' is not a number") NameError: name 'name' is not defined

I already added lod as custom property but it is not working.