Exporting an object with modifiers to X3D fails #74934

Closed
opened 2020-03-19 19:05:51 +01:00 by Michalis Kamburelis · 9 comments

System Information
Operating system: Linux
Graphics card: NVidia

Blender Version
Broken: Blender 2.82a

Short description of error

Exporting a Blender object with modifiers to X3D fails. The exporting script tries to modify a temporary mesh object name, which is not allowed.

Exact steps for others to reproduce the error

Reproduction:

  • Take any mesh (default cube in the default scene is enough),
  • Add a modifier like "Subdivision Surface",
  • Export to X3D with "Apply Modifiers" selected (by default it is).

Export fails with the following error:

Info: starting X3D export to '/home/michalis/Desktop/a.x3d'...
Traceback (most recent call last):
  File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/__init__.py", line 241, in execute
    return export_x3d.save(context, **keywords)
  File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1604, in save
    name_decorations=name_decorations,
  File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1525, in export
    export_main()
  File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1521, in export_main
    export_object(ident, None, obj_main, obj_main_children)
  File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1439, in export_object
    me.name = obj.name.rstrip("1234567890").rstrip(".")
AttributeError: bpy_struct: attribute "name" from "Mesh" is read-only

location: <unknown location>:-1

I'll submit a patch for this shortly.

**System Information** Operating system: Linux Graphics card: NVidia **Blender Version** Broken: Blender 2.82a **Short description of error** Exporting a Blender object with modifiers to X3D fails. The exporting script tries to modify a temporary mesh object name, which is not allowed. **Exact steps for others to reproduce the error** Reproduction: - Take any mesh (default cube in the default scene is enough), - Add a modifier like "Subdivision Surface", - Export to X3D with "Apply Modifiers" selected (by default it is). Export fails with the following error: ``` Info: starting X3D export to '/home/michalis/Desktop/a.x3d'... Traceback (most recent call last): File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/__init__.py", line 241, in execute return export_x3d.save(context, **keywords) File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1604, in save name_decorations=name_decorations, File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1525, in export export_main() File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1521, in export_main export_object(ident, None, obj_main, obj_main_children) File "/home/michalis/installed/blender/2.82/scripts/addons/io_scene_x3d/export_x3d.py", line 1439, in export_object me.name = obj.name.rstrip("1234567890").rstrip(".") AttributeError: bpy_struct: attribute "name" from "Mesh" is read-only location: <unknown location>:-1 ``` I'll submit a patch for this shortly.

Added subscriber: @kambi

Added subscriber: @kambi

#68452 was marked as duplicate of this issue

#68452 was marked as duplicate of this issue

This comment was removed by @kambi

*This comment was removed by @kambi*
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Thx for the fix!

This has actually been reported before, see {#68452], will merge these reports... (and in this case, will merge the older one into the newer one, because we have the fix provided here...)

Thx for the fix! This has actually been reported before, see {#68452], will merge these reports... (and in this case, will merge the older one into the newer one, because we have the fix provided here...)
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscribers: @mufti11, @brutzman

Added subscribers: @mufti11, @brutzman

This issue was referenced by 6c3fbd669d

This issue was referenced by 6c3fbd669d233452d9970cb95b2695c45d78e626

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-03-27 00:43:07 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#74934
No description provided.