Easy Processing > Illustrator Export (bonus SVG export)

After a long time playing with ideas for an easy Processing to Illustrator tool that would allow fancy coding to be piped directly into Illustrator for further layout (and was vector-based the whole way through – no terrible rasterization allowed), I now have a really easy solution that doesn’t involve any fancy code, external libraries, or command-line nonsense.  The process:

1. Write your code as usual, but add PDF export

 

2. Run once and use File > Place… to insert the PDF into your AI document (do not simply open the document, as changes will not be reflected) — NOTE: be sure “Link” is clicked when placing

 

3. The resulting PDF, placed into the document as a single unit

 

4. Make changes in Processing and re-save the pdf – here we reduce the number of lines from 1,000 to 10

 

5. Back in AI, you will be prompted to update the pdf – easy!  No need to ask it, simply moving between programs updates your work

 

6. Awesome, done.

A dead end for this process was SVG export from Processing, which is not super easy (surprisingly).  Here’s my hack that uses Inkscape’s command line tools:

Did you find this post helpful or interesting? A small donation goes a long way towards helping produce this content. If you can't, please share what you've done with others!
Donate via Flattr

4 Replies to “Easy Processing > Illustrator Export (bonus SVG export)”

  1. Hello,
    thanks for that. Thats was very useful and you explain it good.

    Only the svg export in step 6 doesnt work for me. Should I install some libraries or software. I installed Inkscape, but it doenst work either.

    Regards
    Patrick

  2. Thanks for the fast answer, but today I get another interesting thing. Inkscape isn’t necessary for exporting to vector. The exported pdf file is already a vector graphic. You just have to embed the linked file in Illustrator, then you have a common vector graphic.

  3. Yep, that’s what the first part of the post is about! But sometimes you need SVG, and it’s very odd that Processing will load but not export them, hence the hack.

Leave a Reply

Your email address will not be published. Required fields are marked *