BabylonJS / BabylonJS/BlenderExporter
'NoneType' object has no attribute 'writeCsvFile'
- Dominant language
- Python
- Stars
- 308
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
I'm having this error for days trying to export a mesh from Blender to render in Babylon
Would anyone be able to help me understand the problem and overcome it?
```Python: Traceback (most recent call last):
File "C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\babylon_js\json_exporter.py", line 50, in execute
if self.settings.writeCsvFile:
AttributeError: 'NoneType' object has no attribute 'writeCsvFile'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\babylon_js\__init__.py", line 71, in execute
exporter.execute(context, self.filepath, objects)
File "C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\babylon_js\json_exporter.py", line 175, in execute
if self.settings.writeCsvFile: stats_handler.close()
AttributeError: 'NoneType' object has no attribute 'writeCsvFile'
bpy.ops.export.bjs(filepath="C:\\Users\\lenovo\\Desktop\\globo3d1.babylon")
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with json_exporter.py around lines 50 and 175, then follow the call from __init__.py line 71 while reproducing the export in Blender 4.0. Determine why settings is None during the export and verify that a mesh export completes without either writeCsvFile traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- blender, python
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100