Forums > Jitter

SVG processing


May 22, 2013 | 12:13 pm

hi there,

I need to process svg files.
I mean, to extracts shapes & meshes, to play with them.

I would load dynamically a bunch of svg, but just one at the beginning and then probably collecting storing all in jitter matrices, THEN play with them.

Is there a way to import svg and parse them using JS for instance ?

Prototyping in processing, that would prepare well the points for further use :p

May 27, 2013 | 11:30 pm

Why dont you try Pac-n-zoom.com and make animations from there and then add the link

May 28, 2013 | 4:57 am

I ended up with making that in Processing for prototyping then I’ll go to Max.
Here is one result with a drawing by Shantell Martin:

http://www.youtube.com/watch?v=C03ifwmg0js

http://www.youtube.com/watch?v=eLRRyRCKOeA

Totally unfinished but working on that…

August 2, 2014 | 1:55 am

Hello, JULIEN BAYLE

This is svg processing sample code.You can process path shape through dict object.
sadam.rapidXML is used in this patch.

— Pasted Max Patch, click to expand. —
  • This reply was modified 12 months by  mirrorboy.
Attachments:
  1. -2014-08-02-17.41.09

    -2014-08-02-17.41.09.jpeg


pry
April 30, 2015 | 4:07 pm

Hi Mirrorboy & Julien,

I’m trying to play with SVG files too, but when I read a SVG file with Mirrorboy’s patch, I get these errors :

dict: no dictionary named svg, cannot get value
dict: index out of range for key svg::@viewBox

and dict.view remains empty.

Do you know why ?
Do you have any other suggestion about processing SVG file ?

Thanks.

Pry

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Jitter