SVG processing


    May 22 2013 | 7: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 28 2013 | 6:30 am
      Why dont you try Pac-n-zoom.com and make animations from there and then add the link
    • May 28 2013 | 11: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:
      Totally unfinished but working on that...
    • Aug 02 2014 | 8: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.
    • Apr 30 2015 | 11: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
    • Jan 28 2017 | 12:23 pm
      Hi, the sadam library site is offline, any other suggestion for SVG file reading? thanks.
    • Jan 28 2017 | 12:55 pm
    • Feb 06 2017 | 11:29 am
      Hi, I have the same problem as Pry: the dict is empty.
      Any idea why and how to fix it
      Thanks