Export mesh as flat net for paper modelling #22417

Closed
opened 2010-05-25 12:05:14 +02:00 by Adam Dominec · 15 comments
Member

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.51
Category: Mesh
Python: 3.1
Homepage: http://blenderartists.org/forum/showthread.php?p=1627111
Script name: Unfolder (temporary name)
Wiki page: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/Paper Model
Author(s): Addam Dominec
Status: Closed

%%%Features:
The script decides where to cut a given mesh and then creates a net of it, much like Celeriac's Unfold script. The net (or multiple nets) is saved as svg documents ready for printing.
My effort is to make the process as automatic as possible so that the script will need least possible user interaction.

Setup:
Install the add-on and enable it

Manual:
In the 3D View Toolbox, the script has its own settings panel. Firstly, there is a button Unfold, which marks seams for cutting the mesh. Secondly, the button Export Net will create the net and save it to a selected location.
The script applies scale to the model before calculating net. But it uses real dimensions: objects must be about 0.05 blender units (meters) to fit into the default page dimensions.

Documentation is not available - yet.
The name is only temporary, it will be rather something like Export Paper Model.%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Upload **Blender**: 2.51 **Category**: Mesh **Python**: 3.1 **Homepage**: http://blenderartists.org/forum/showthread.php?p=1627111 **Script name**: Unfolder (temporary name) **Wiki page**: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/Paper Model **Author(s)**: Addam Dominec **Status**: Closed %%%Features: The script decides where to cut a given mesh and then creates a net of it, much like Celeriac's Unfold script. The net (or multiple nets) is saved as svg documents ready for printing. My effort is to make the process as automatic as possible so that the script will need least possible user interaction. Setup: Install the add-on and enable it Manual: In the 3D View Toolbox, the script has its own settings panel. Firstly, there is a button Unfold, which marks seams for cutting the mesh. Secondly, the button Export Net will create the net and save it to a selected location. The script applies scale to the model before calculating net. But it uses real dimensions: objects must be about 0.05 blender units (meters) to fit into the default page dimensions. Documentation is not available - yet. The name is only temporary, it will be rather something like Export Paper Model.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%I decided that this script should belong to the Export category and I moved it.
Besides that I wrote several rather small improvements / bugfixes to the script, now it is version 0.6.

I wrote a wiki page about it:
http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/File_I-O/Paper_Model%%%

%%%I decided that this script should belong to the Export category and I moved it. Besides that I wrote several rather small improvements / bugfixes to the script, now it is version 0.6. I wrote a wiki page about it: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/File_I-O/Paper_Model%%%

%%%Hi, is this script up to date?

I tried it now and apart from geometry module that now is mathutils.geometry, it shows problems with properties attached to Scene

I'd like to propose to move this addon in svn (contrib) but would like to see it fixed.
If this worked well I'd be also for release but not sure we have time, next release is within a couple of days :/

Sorry that no one had time to review sooner, if you have time, let me know how it goes :)%%%

%%%Hi, is this script up to date? I tried it now and apart from geometry module that now is mathutils.geometry, it shows problems with properties attached to Scene I'd like to propose to move this addon in svn (contrib) but would like to see it fixed. If this worked well I'd be also for release but not sure we have time, next release is within a couple of days :/ Sorry that no one had time to review sooner, if you have time, let me know how it goes :)%%%
Author
Member

%%%If I know how to use this tracker, there should be a new attachment. Otherwise, you can get the script from Google Code:
http://pure-evil.googlecode.com/files/export_paper_model.py

I'd love to have this in an official release, just maybe it's too dirty yet. There are several unfinished features and one important bug. I should put a warning mark next to this add-on at least :)%%%

%%%If I know how to use this tracker, there should be a new attachment. Otherwise, you can get the script from Google Code: http://pure-evil.googlecode.com/files/export_paper_model.py I'd love to have this in an official release, just maybe it's too dirty yet. There are several unfinished features and one important bug. I should put a warning mark next to this add-on at least :)%%%

%%%ok the export works but on suzanne produce a lot of small pieces, and spanned across 4 pages
I need more time to test this for sure
if you want to attach a file click on attachments, you should see the upload buttons

I doubt this will go in release in such a short time but anyway if you have time please drop in #blenderpython to discuss lice a bit, thanks!

%%%

%%%ok the export works but on suzanne produce a lot of small pieces, and spanned across 4 pages I need more time to test this for sure if you want to attach a file click on attachments, you should see the upload buttons I doubt this will go in release in such a short time but anyway if you have time please drop in #blenderpython to discuss lice a bit, thanks! %%%
Member

%%%hi,
are there any updates on this script?
I have seen good results on the forums.
Are you still working on this?
Please let us know :)
%%%

%%%hi, are there any updates on this script? I have seen good results on the forums. Are you still working on this? Please let us know :) %%%
Member

%%%Hi,
Just a Reminder for people to Join the Mail List.
If you have not already, please visit this page:
http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
& join the list.%%%

%%%Hi, Just a Reminder for people to Join the Mail List. If you have not already, please visit this page: http://lists.blender.org/mailman/listinfo/bf-extensions-cvs & join the list.%%%
Member

%%%hi Addam,
I've noticed you update your addon on github
https://github.com/addam/Export-Paper-Model-from-Blender/
Also looking at your thread on blender artists you seem to have everything covered nicely.
I'm closing this page for now.
If you decide to update & resubmit the addon you can comment here & we can reopen the page for you.
Brendon.%%%

%%%hi Addam, I've noticed you update your addon on github https://github.com/addam/Export-Paper-Model-from-Blender/ Also looking at your thread on blender artists you seem to have everything covered nicely. I'm closing this page for now. If you decide to update & resubmit the addon you can comment here & we can reopen the page for you. Brendon.%%%
Member

Changed status from 'Open' to: 'Archived'

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

%%%I tried v0.7 with a recent SVN built (>2.63 official) but i can't activate it in user preferences!

Changed required Blender version in bl_info but no luck...%%%

%%%I tried v0.7 with a recent SVN built (>2.63 official) but i can't activate it in user preferences! Changed required Blender version in bl_info but no luck...%%%
Author
Member

%%%There is a version of the script that is compatible with blender 2.63, but I'm having problems uploading attachments here to the tracker. So if I don't find out, you can always download the newest version from github: https://github.com/addam/Export-Paper-Model-from-Blender
I call the script version 0.8 already.%%%

%%%There is a version of the script that is compatible with blender 2.63, but I'm having problems uploading attachments here to the tracker. So if I don't find out, you can always download the newest version from github: https://github.com/addam/Export-Paper-Model-from-Blender I call the script version 0.8 already.%%%

%%%Hi, the UI of the Toolshelf panel of this script signalizes an error in the System console for Blender 2.66
The reason:
changed argument list of the UIList.template_list() function (line 1323)
Solution:
Add two additional strings as the required arguments:
before it was:
box.template_list(sce, 'island_list', sce, 'island_list_index', rows=1, maxrows=5)
this code works properly:
box.template_list('UI_UL_list', 'paper_uv_islands', sce, 'island_list', sce, 'island_list_index', rows=1, maxrows=5)

(the first string is required, teh second has to be just any unique ID (string)).
%%%

%%%Hi, the UI of the Toolshelf panel of this script signalizes an error in the System console for Blender 2.66 The reason: changed argument list of the UIList.template_list() function (line 1323) Solution: Add two additional strings as the required arguments: before it was: box.template_list(sce, 'island_list', sce, 'island_list_index', rows=1, maxrows=5) this code works properly: box.template_list('UI_UL_list', 'paper_uv_islands', sce, 'island_list', sce, 'island_list_index', rows=1, maxrows=5) (the first string is required, teh second has to be just any unique ID (string)). %%%

Added subscriber: @CarlosMunoz

Added subscriber: @CarlosMunoz

When I set my units preferences for 3D printers (in: Metric Degrees Scale: 0.001) the svg result is not working properly. The file generated is empty.

But when I set my units preference in metres/degrees/scale=1 or without scale is working properly.

work_without_scale.svg

work_with_scale1.svg

empty.svg

When I set my units preferences for 3D printers (in: Metric *Degrees* Scale: 0.001) the svg result is not working properly. The file generated is empty. But when I set my units preference in metres/degrees/scale=1 or without scale is working properly. [work_without_scale.svg](https://archive.blender.org/developer/F180800/work_without_scale.svg) [work_with_scale1.svg](https://archive.blender.org/developer/F180802/work_with_scale1.svg) [empty.svg](https://archive.blender.org/developer/F180803/empty.svg)
Author
Member

Carlos, this tracker item is already abandoned. The script itself has been included in Blender Contrib repository, and can also be downloaded directly: F210208
I believe that the scale settings are working correctly now, and if not, I'd take care to fix it.

Carlos, this tracker item is already abandoned. The script itself has been included in Blender Contrib repository, and can also be downloaded directly: F210208 I believe that the scale settings are working correctly now, and if not, I'd take care to fix it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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#22417
No description provided.