Hi, I wonder if it’s possible to save ofPath to a file (e.g svg file) and then later read the file to create ofPath from it.
I found out how to read the svg file but couldn’t find how to write ofPath to a svg file.
Hi there,
I’d like to parse svgs file and to store each “element” as a path.
The purpose is to draw progressively an svg file by following some aesthetic rules I’ll define later.
anyone ?
I would appreciate any advice. Thanks.
Hennio
March 6, 2017, 12:53pm
#2
Check this addon out: https://github.com/borg/ofxEditableSVG/tree/master/example/src
You can extract only the load and save methods if its too big for your project.
1 Like
Yeah, that would be so great. Looking for that too.
If it’s possible would be great to have an editable SVG example ( draw a path and save it into SVG ) from scratch, like XML example does.
@theborg Any Tips?
Cheers
Thanks @Hennio I will try that out.