SVG processing
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
Why dont you try Pac-n-zoom.com and make animations from there and then add the link
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:
Totally unfinished but working on that...
Hello, JULIEN BAYLE
This is svg processing sample code.You can process path shape through dict object.sadam.rapidXML is used in this patch.
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
Hi, the sadam library site is offline, any other suggestion for SVG file reading? thanks.
ah i found the madam.rapidXML tools
https://cycling74.com/tools/the-sadam-library/#.WIyUVrE8XcN
Hi,
I have the same problem as Pry: the dict is empty.
Any idea why and how to fix it
Thanks
hi,
i wanted to paste my continuation with the above patch of Julien (thanks!!) before it becomes too complex...