Paper Model export "custom page size" and "tabs" does not honor Scene/Unit/Unit Scale #52042

Closed
opened 2017-07-13 07:32:34 +02:00 by Nathan Henry · 7 comments

System Information
Operating system and graphics card
macOS Sierra Version 10.12.5
2 x AMD FirePro D300 2048 MB graphics

Blender Version
Broken: 2.78 e0bc5b5, see splash screen (2.79 release candidate)
Worked: (optional)

Short description of error
Paper Model does not honor the scene unit scale in the paper model export window for custom page size and tab size.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  1. Set units to "Inches"
  2. Set default box dimensions to 1' x 2' x 6"
  3. Object/Apply/All Transforms to Deltas
  4. Edit Mode
  5. Marked Seams on Box
  6. Object Mode
  7. Paper Model Tab "Unfold"
  8. Paper Model Tab "Export Paper Model"
  9. Set Custom Paper Size to 4' x 8' and Tabs to 1"
  10. Saved as PDF... (This exported PDF crashes Illustrator CS6, unless opened in Preview and re-saved.)

PaperBoxBug.blend

Screen Shot 2017-07-12 at 9.36.06 PM.png

Scene Units set to Inches
Screen Shot 2017-07-12 at 9.39.45 PM.png

The following dimensions are not honored
Screen Shot 2017-07-12 at 10.05.20 PM.png

If I factor in the scene unit scale of .0254 to the custom page width, height and tabs, the output PDF has the correct dimensions.
Screen Shot 2017-07-12 at 10.04.40 PM.png

**System Information** Operating system and graphics card macOS Sierra Version 10.12.5 2 x AMD FirePro [D300](https://archive.blender.org/developer/D300) 2048 MB graphics **Blender Version** Broken: 2.78 e0bc5b5, see splash screen (2.79 release candidate) Worked: (optional) **Short description of error** Paper Model does not honor the scene unit scale in the paper model export window for custom page size and tab size. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps 1) Set units to "Inches" 2) Set default box dimensions to 1' x 2' x 6" 3) Object/Apply/All Transforms to Deltas 4) Edit Mode 5) Marked Seams on Box 6) Object Mode 7) Paper Model Tab "Unfold" 8) Paper Model Tab "Export Paper Model" 9) Set Custom Paper Size to 4' x 8' and Tabs to 1" 10) Saved as PDF... (This exported PDF crashes Illustrator CS6, unless opened in Preview and re-saved.) [PaperBoxBug.blend](https://archive.blender.org/developer/F663035/PaperBoxBug.blend) ![Screen Shot 2017-07-12 at 9.36.06 PM.png](https://archive.blender.org/developer/F663031/Screen_Shot_2017-07-12_at_9.36.06_PM.png) Scene Units set to Inches ![Screen Shot 2017-07-12 at 9.39.45 PM.png](https://archive.blender.org/developer/F663033/Screen_Shot_2017-07-12_at_9.39.45_PM.png) The following dimensions are not honored ![Screen Shot 2017-07-12 at 10.05.20 PM.png](https://archive.blender.org/developer/F663034/Screen_Shot_2017-07-12_at_10.05.20_PM.png) If I factor in the scene unit scale of .0254 to the custom page width, height and tabs, the output PDF has the correct dimensions. ![Screen Shot 2017-07-12 at 10.04.40 PM.png](https://archive.blender.org/developer/F663032/Screen_Shot_2017-07-12_at_10.04.40_PM.png)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @N8-4

Added subscriber: @N8-4
Adam Dominec was assigned by Brendon Murphy 2017-07-13 09:01:43 +02:00
Member

Explanation: the number spinners in Blender think that they display some length information about the scene, which is not the case here -- on-paper dimensions should not be influenced by scene unit scale. They live in a different world.

I'll look into this in August, I don't have enough time currently. I know of a dirty workaround, and another option is to just tell the user that scene dimensions are being ignored. Maybe there is a solution.

Explanation: the number spinners in Blender think that they display some length information about the scene, which is *not* the case here -- on-paper dimensions should not be influenced by scene unit scale. They live in a different world. I'll look into this in August, I don't have enough time currently. I know of a dirty workaround, and another option is to just tell the user that scene dimensions are being ignored. Maybe there is a solution.
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Resolved'

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

closing as resolved for now, @emu-3 i think you have explained the addon sufficiently.
if you decide to tackle this in the future, please let us know.

closing as resolved for now, @emu-3 i think you have explained the addon sufficiently. if you decide to tackle this in the future, please let us know.
Member

I added a notice if the unit scale is wrong:unit_scale.png
If you want to see the other solution (dirty hack) in action, check out the unit_scale branch . It seems pretty much to work, though.

I added a notice if the unit scale is wrong:![unit_scale.png](https://archive.blender.org/developer/F694538/unit_scale.png) If you want to see the other solution (dirty hack) in action, check out the [`unit_scale` branch ](https://raw.githubusercontent.com/addam/Export-Paper-Model-from-Blender/unit_scale/io_export_paper_model.py). It seems pretty much to work, though.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#52042
No description provided.