[partially solved] unlinking clones without inkscape possible?

Discuss SVG code, accessible via the XML Editor.
aik
Posts: 5
Joined: Wed Sep 02, 2015 1:10 am

[partially solved] unlinking clones without inkscape possible?

Postby aik » Wed Sep 02, 2015 1:48 am

Ahoi!

Is there a way to unlink (all) the clones in a SVG-file without using inkscape (gui)?
I often have large tesselations, created with recursive clones. Attached a simple example file.
It takes a quite long time, when I use the 'unlink clone'-tool and ungroup multiple times.

//partial sulution in post #4

sunny regards
aik

btw: Hi – I'm new!
Attachments
limhex.svg
example recursive tesselation with clones
(2.33 KiB) Downloaded 350 times
Last edited by aik on Thu Jul 07, 2016 9:12 pm, edited 1 time in total.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: unlinking clones without inkscape possible?

Postby Lazur » Wed Sep 02, 2015 4:45 am

Welcome aboard!

So what's that?
A parent object hidden in the defs, some polylines, and colours described by names instead hex values.
Not really inkscape thingy.

Command line is too advanced to me.

It does not appear possible to suppress the GUI when using the --verb argument.

command line

list of verbs


By the way, interesting pattern!

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: unlinking clones without inkscape possible?

Postby brynn » Wed Sep 02, 2015 12:24 pm

aik wrote:Is there a way to unlink (all) the clones in a SVG-file without using inkscape (gui)?


You could do it by editing the XML in a text file.

There's a "deep ungroup".....I think it's an extension, somewhere. Maybe try http://wiki.inkscape.org/wiki/index.php ... Repository. But I've never heard of the same thing for unlinking clones. Although I guess it would be no harder than the deep ungroup one, to make it (for someone who knows how to do that kind of thing).

But the way you've made this image/file, you can only go ungroup, unlink, ungroup, unlink, ungroup, etc. I don't think the deep ungroup would work here.

The solution may be finding a different way to build the image....?

aik
Posts: 5
Joined: Wed Sep 02, 2015 1:10 am

Re: unlinking clones without inkscape possible?

Postby aik » Wed Sep 02, 2015 8:52 pm

Thank you for your comments.

I don't think there is another practical way for generating this kind of pattern. Also I have a lot of them already made in that way – I work for tilings encyclopedia, there are about 200 aperiodic tilings, formed by substitution… the recursive clones are imo a very elegant solution, though in general it isn't recommended to clone clones (whitch is maybe why there is no easy "deepunlink" – at least from what I found).

I think about maybe creating an own script/plugin/… for this purpose (unfortunatly the deepungroup tool seem to be ofline – would surely help…)

I'd be very glad, if anyone has further ideas.

btw: if you liked the limhex-pattern - go look at the manny beautiful/interesting patterns at tilings encyclopedia. limhex is rather boring, compared to most of them ;)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: unlinking clones without inkscape possible?

Postby brynn » Wed Sep 02, 2015 10:47 pm

OMG! My new favorite site! Those are some gorgeous patterns :D

Well, my best idea is to edit in a text file. But I couldn't give you step by step instructions.

aik
Posts: 5
Joined: Wed Sep 02, 2015 1:10 am

Re: unlinking clones without inkscape possible?

Postby aik » Thu Jul 07, 2016 9:11 pm

Ahoihoi!

I found a - partial - solution.

Converting to other vectorformat like pdf and converting back/importing yields a single Group of single objects/paths.
As inkscape commandline is used it still fails for very big patterns, but in case it uses too much memory I do it step by step - recursive cloning until limit - convert to other vectro, convert back - manually paste single paths and clone them again.


Return to “SVG / XML Code”