How to save ofPath to a file and then open it later?

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.

I would appreciate any advice. Thanks.

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 :slight_smile: Any Tips?
Cheers

Thanks @Hennio I will try that out. :slight_smile: