Page 1 of 1

Importing an SVG with the new Widget

Posted: Sat Mar 12, 2016 6:09 pm
by richmond62
Well, as not all of us have Adobe Illustrator [ http://lessons.livecode.com/m/33498/l/3 ... -extension ]

I thought I would put together a similar "Show-Me" thing using Inkscape [ https://inkscape.org/en/ ]:

Open or create your shape in Inkscape:
Ink1.png
Select ALL the layers:
Ink2.png
Make sure it is a compound path:
Ink3.png

Re: Importing an SVG with the new Widget

Posted: Sat Mar 12, 2016 6:12 pm
by richmond62
Save under a different name:
Ink4.png
Notice how the image has changed.

Open the new image in a text editor:
Ink5.gif
Get the d="..." data
Ink6.png

Re: Importing an SVG with the new Widget

Posted: Sat Mar 12, 2016 6:14 pm
by richmond62
Paste into iconPath field:
Ink7.gif
Here's a ZIP file with the resultant stack and the original SVG file so you can play around
with this yourself:
Packet.zip
(49.83 KiB) Downloaded 319 times

Re: Importing an SVG with the new Widget

Posted: Sat Mar 12, 2016 8:23 pm
by richmond62
Unfortunately the imported image is not exactly the same as the original SVG image,
and until that happens SVG import is a fudge.
result.png