0

a couple of weeks ago i learned: inkscape - combine svg elements into combined path, and would now like to do it programmatically.

my document has <use /> elements, which in inkscape 1.x show path entities with the path tool, so, i figured i'd first try and just coerce the use into a path:

if el.TAG == 'use': self.svg.replace(el, el.to_path_element())

but inside of elements.py, on the to_path_element call, it throws with AttributeError: Can't find attribute Use.path.

ideas on how to convert <use /> to <path />?

4
  • <svg:use elements in Inkscape are clones. You can release clones in Inkscape using Edit > Clone > Unlink clone
    – Billy Kerr
    Dec 22, 2019 at 11:59
  • Right, but I'm trying to figure out how to do it programmatically through the python interface
    – cdaringe
    Dec 23, 2019 at 16:36
  • Then that would be a coding question rather than a graphic design question. You might be better to post this on Stack Overflow. If you want, you can flag your own question to have a moderator migrate it for you.
    – Billy Kerr
    Dec 23, 2019 at 17:20
  • ported to stackoverflow.com/questions/59587940/…
    – cdaringe
    Jan 4, 2020 at 4:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.