Page MenuHome

Import vector files as polygons in a mesh object
Closed, ResolvedPublicPATCH

Description

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.57
Category: Import Export
Python: 3.2
Homepage: https://sites.google.com/site/howardtrickey/pythonvector
Script name: Import Adobe Illustrator, PDF, SVG
Wiki page: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/AI_PDF_SVG
Author(s): Howard Trickey
Status: Open

This addon script reads Adobe Illustrator Files (all versions), PDF files, and SVG files, and converts the shapes into a mesh object as polygons. It tries to deal with holes properly. There is a primitive attempt to match the polygon colors to those specified in the input file.

There are different parameters that can be set in the Tool panel to affect the import. Some affect how curves are converted into the necessary straight line approximation, and others allow for optional extrude / bevel / cap the back operations after the shapes are imported.

The beveling operation is smart enough to work even when the edges would cross each other.

Event Timeline

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,
Due to changes to the api including the merging of bmesh, several addons are outdated.
Please, if you are the author of an addon check your script with blender revision 44256 or newer.
That is builds made After blender 2.62 official release.
I would ask that updates be made to your addon before the Blender 2.63 release.
6-8 weeks away.
This allows time for the api to become more exposed & bmesh to stablize furthur.
If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions.
At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed"
this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened.

Thanks for your understanding & patience during these Exciting Times.
Brendon.

HI,
I'm unsure on the status of this addon,
could you please let me know.
Brendon

doesn't seem to work anymore on 2.65, the importing menu item is still there, seems to work weel in the tree but I cannot see anything in the 3d window...
I know it's an upgrade problem because I just downloaded the last version.
I found your plugin so useful and would like to have it updated..
Plelase ask me what you need to make it :)
jilt

I made some changes in the version spec to say it is for Blender 2.65, and bumped the version of the script to 0.9. I tried some tests and they work for me, but really I don't think I changed anything significant. Please try the 0.9 version, available either from the attachments or the download link, and see if it works for you. If not, please attach a file that doesn't import properly.

Hi Howard,
Really great plugin :) 2 bugs and 1 remark though :
- Choosing a big file to import will make the next import impossible. The last imported file will be imported again (I think nobody wants just a behaviour, simply stop remember last imported file should solve this?) on calling the import function from the file->import menu, taking a long time and a lot of memory, then clicking the choose file button will just crash blender. I can't attach file for that, too big and rights problems.
- The official SVG importer imports the real size (21x29,7cm for an A4 for example), it seems to be broken here, sometime it will try to follow it but only on one axe, making the whole import stretched (I couldn't reproduce the bug with simple files, and other are too big or have copyrights problems)
- The bevel (inset actually ?) version of this importer is simply awesome. It detects collision, allow a mix with an extrude : it's the perfect tool to import town planes. Why not include it in the inset operator or best in a modifier ? The one in trunk is broken as soon as the face don't have 1:1 proportions, it will just creates crazy geometry.

Thanks for the report.
I will try to get to this soon (won't be hard to fix, just that I'm in the middle of fixing other things in Blender right now).
The size thing is interesting. When I use example SVG files, their sizes are all over the place so I thought it would
be convenient to scale to a 'usual' size; I guess you as a representative user, and the official SVG importer, disagree,
so I will change the behavior.
Thanks for your appreciation of the bevel/inset in this importer. I am like it too and in fact got into C Blender
development specifically to get this functionality into some of the internal tools (especially text bevel).
But have been too busy with knife and bevel to get to it yet.

Nice to hear it will be integrated :) I hope you will soon get time for this, but take your time. I really appreciate how you work with your users, not only adding features, but also ensuring they are robust to many use cases and producing "user expected results" instead of "programmer expected results". Wish you all the best :)

Howard Trickey (howardt) changed the task status from Unknown Status to Resolved.Feb 17 2014, 9:14 PM

I updated this addon and moved it to addons_contrib, so that you won't have to download it separately after the next release.

I added a 'True Scale' option, so that it behaves like the official SVG importer if you check that.

I moved the importer options to the File Select panel, so it won't start loading a file until you hit the "import" button, which should solve your issue with big files.

The idea of moving the overlap-detecting inset into the official tool will remain as a TODO, but I am marking this task as resolved now.