Export paper model addon: export with material textures does not work #76485

Closed
opened 2020-05-06 21:33:19 +02:00 by Wouter Stomp · 6 comments

System Information
Operating system: Darwin-19.4.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.8.24

Blender Version
Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-01 21:55, hash: blender/blender@83304e4c22
Worked: unknown

Short description of error
Export to paper model fails to export when I enable export with material textures, with the following error:

Exception ignored in: <function Unfolder.__del__ at 0x123d697a0>
Traceback (most recent call last):
  File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 190, in __del__
    self.mesh.delete_uvmap()
  File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 306, in delete_uvmap
    self.data.loops.layers.uv.remove(self.looptex) if self.looptex else None
ReferenceError: BMesh data of type BMesh has been removed
Traceback (most recent call last):
  File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 2090, in execute
    self.unfolder.save(self.properties)
  File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 255, in save
    recall_pass = {p: getattr(bk, f"use_pass_{p}") for p in ('ambient_occlusion', 'color', 'diffuse', 'direct', 'emit', 'glossy', 'indirect', 'subsurface', 'transmission')}
  File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 255, in <dictcomp>
    recall_pass = {p: getattr(bk, f"use_pass_{p}") for p in ('ambient_occlusion', 'color', 'diffuse', 'direct', 'emit', 'glossy', 'indirect', 'subsurface', 'transmission')}
AttributeError: 'BakeSettings' object has no attribute 'use_pass_subsurface'

location: <unknown location>:-1

Exact steps for others to reproduce the error
Add a material to the default cube.
Export -> export to paper model.
Export with no textures works like expected, while when I enable material textures I get the above error message.

**System Information** Operating system: Darwin-19.4.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.8.24 **Blender Version** Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-01 21:55, hash: `blender/blender@83304e4c22` Worked: unknown **Short description of error** Export to paper model fails to export when I enable export with material textures, with the following error: ``` Exception ignored in: <function Unfolder.__del__ at 0x123d697a0> Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 190, in __del__ self.mesh.delete_uvmap() File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 306, in delete_uvmap self.data.loops.layers.uv.remove(self.looptex) if self.looptex else None ReferenceError: BMesh data of type BMesh has been removed Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 2090, in execute self.unfolder.save(self.properties) File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 255, in save recall_pass = {p: getattr(bk, f"use_pass_{p}") for p in ('ambient_occlusion', 'color', 'diffuse', 'direct', 'emit', 'glossy', 'indirect', 'subsurface', 'transmission')} File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/io_export_paper_model.py", line 255, in <dictcomp> recall_pass = {p: getattr(bk, f"use_pass_{p}") for p in ('ambient_occlusion', 'color', 'diffuse', 'direct', 'emit', 'glossy', 'indirect', 'subsurface', 'transmission')} AttributeError: 'BakeSettings' object has no attribute 'use_pass_subsurface' location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** Add a material to the default cube. Export -> export to paper model. Export with no textures works like expected, while when I enable material textures I get the above error message.
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser self-assigned this 2020-05-07 10:44:54 +02:00
Member

Iirc, subsurface is not a separate pass anymore, checking on a quick fix...

Iirc, subsurface is not a separate pass anymore, checking on a quick fix...
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

Not sure why this hasnt been closed automatically, but this should be resolved now, see b5faa814dc

Not sure why this hasnt been closed automatically, but this should be resolved now, see b5faa814dc
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#76485
No description provided.