On Sun, 2016-01-03 at 02:12 -0500, Martin Owens wrote:
On Sun, 2016-01-03 at 03:06 +0100, Maren Hachmann wrote:
Find it here: https://inkscape.org/gallery/item/7221/
Basically, it's duplicating the topmost object and repeating the operation for each selected object below. The combining part could be done by the user, if they choose to do so
but again, I think doing it this way is a little inconsistent - yet enomously useful... The extension is rather slow (because it reads through the whole document to find out about the stacking order *and* also launches a new Inkscape instance).
The code that does these actions is rather a mess. It /mostly/ always generates one shape and deletes all the rest. But of course cut and slice do a mass of different things (and sometimes the same things).
So to generate the right output we'd actually have to call it multiple times while not deleting the source and then deleting it in the end. Or changing the messy logic to something that can output multiple shapes.
I'll dabble with it for a while and see if I can make it into something.
BTW, we should probably be moving our code to use lib2geom path operations.
Tav
Martin,
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel