convert svg with multiple "objects"
-
So I have an svg that I would like to convert and use as a path, but....
its got a number of separate "paths" in it, like this:
<path id="Pfad_1" data-name="Pfad 1" d="M16.958,5.444a1.422,1.422,0,0,0-2.011,0L8.914,11.477A3.555,3.555,0,1,1,3.886,6.449L7.908,2.427A1.422,1.422,0,0,0,5.9.416L1.875,4.438a6.4,6.4,0,1,0,9.05,9.05l6.034-6.033A1.422,1.422,0,0,0,16.958,5.444Z" transform="translate(0 0)" fill="#ededea"/> <path id="Pfad_2" data-name="Pfad 2" d="M108.758,1a6.356,6.356,0,0,0-4.525,1.874L98.2,8.9a1.422,1.422,0,0,0,2.011,2.011l6.033-6.033a3.555,3.555,0,1,1,5.028,5.028l-4.022,4.022a1.422,1.422,0,1,0,2.011,2.011l4.022-4.022A6.4,6.4,0,0,0,108.758,1Z" transform="translate(-92.805 -0.946)" fill="#ededea"/> <path id="Pfad_3" data-name="Pfad 3" d="M517.789,83.713c-.9-.31-1.159-.466-1.159-.9,0-.062.024-.61.856-.61a1,1,0,0,1,.929.54l1.244-.476a2.329,2.329,0,0,0-2.172-1.391A2.022,2.022,0,0,0,515.3,82.81c0,1.449,1.236,1.876,2.053,2.158.922.318,1.19.482,1.19.952,0,.751-.79.81-1.032.81a1.354,1.354,0,0,1-1.208-.953l-1.276.374a2.7,2.7,0,0,0,2.484,1.907,2.192,2.192,0,0,0,2.36-2.138C519.874,84.433,518.619,84,517.789,83.713Z" transform="translate(-488.814 -76.756)" fill="#ededea"/>
I cant seem to find a way to get these to render to a path in HISE - is there a way?
-
d= is the draw path. Copy each one of those separately into the converter.
-
What Dan said. But sometimes it doesn't come out how you expect. In those situations I open the file in Inkscape and try and merge the objects into one.
-
@Dan-Korneff said in convert svg with multiple "objects":
d= is the draw path. Copy each one of those separately into the converter.
yeah except each has an offset and I have about 10 of them so I want to draw the path just once..
-
@d-healey I will give it a go, thanks
-
-
@d-healey said in convert svg with multiple "objects":
What Dan said. But sometimes it doesn't come out how you expect. In those situations I open the file in Inkscape and try and merge the objects into one.
OK well that worked - thanks...
-
@Lindon Same as Dave, Inkscape, combine (or union) the paths in one unique thing
-
@ustk said in convert svg with multiple "objects":
@Lindon Same as Dave, Inkscape, combine (or union) the paths in one unique thing
yep got it thanks... except first
Path>Object to Path
then
Path>Union
-
@Lindon Oh yes of course, the objects should be converted to paths at first...