mitsuba-renderer/mitsuba-blender

Getting error while exporting file as XML

anindha-dhar opened this issue · 2 comments

Getting error while exporting file as XML
After doing the word, while I was trying to export the file as XML I' getting the following error:

Python: Traceback (most recent call last):
  File "C:\Users\HP\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\mitsuba-blender\io\__init__.py", line 136, in execute
    self.converter.scene_to_dict(deps_graph, window_manager)
  File "C:\Users\HP\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\mitsuba-blender\io\exporter\__init__.py", line 97, in scene_to_dict
    geometry.export_object(object_instance, self.export_ctx, evaluated_obj.name in particles)
  File "C:\Users\HP\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\mitsuba-blender\io\exporter\geometry.py", line 131, in export_object
    mts_mesh.write_ply(filepath)
AttributeError: 'NoneType' object has no attribute 'write_ply'

image

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'File'
  2. Click on 'Export'
  3. Scroll down to 'Mitsuba(.xml)'
  4. See error

Environment (please complete the following information):

  • OS: Windows 11
  • Blender Version: 3.4
  • Add-on Version: Latest

Additional context
I was trying to do my work on Blender 4.0. But I faced difficulties while adding the addon. After reading the issues, I downgraded to version 3.4 and successfully add the addon. But after completing my word I got the error while exporting.

Versions of blender from 3.4 onwards are currently not supported. We support 3.3 LTS and will soon support 3.6 LTS as well. Please try again on Blender 3.3 and let us know if the issue persists.

This should now be fixed with the latest release of the add-on. Please upgrade and re-open this issue if the problem persists.