mitsuba-renderer / mitsuba-blender

Mitsuba integration add-on for Blender
BSD 3-Clause "New" or "Revised" License
280 stars 37 forks source link

Getting error while exporting file as XML #82

Closed anindha-dhar closed 11 months ago

anindha-dhar commented 11 months ago

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):

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.

bathal1 commented 11 months ago

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.

bathal1 commented 11 months ago

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