Inkscape.org
Beyond the Basics Clone not copying to new document in 1.3
  1. #1
    iva iva @iva-has-crayons

    In prior versions of Inkscape, I would set up a "clone set" — I group a single path (so I can add to the group later), clone it, flip the clone horizontally and align the edges to make a mirrored object. Then I group the group and its clone, so I can move this clone set around as a single object.

    Then, as I make changes to my mirrored object, I copy iterations of it into a different document.

    On my first try at doing this in 1.3, when I copied the clone set and pasted it into a new document, it seems to have pasted the group of "two objects," but the only object visible is the parent group (the first half of the mirrored object).


    I tried ungrouping the outer grouping in my original document, selecting both halves and copying and pasting, and that also only pasted the parent object (though when I paste it, it says two objects are selected, a group and a clone).

    I tried ungrouping everything and copying the original path to a new document, and creating a new clone set with it. This behaved the same way when I tried to copy and paste the clone set to a new document.

    I tried restarting Inkscape, then doing these steps again.

    I tried creating a new path, just a modified rectangle, did the same clone grouping with it, copying and pasting it into a new doc; it pasted with no problem. But still my original clone set has not been pasting properly.

    I'm kind of stuck here, and spent a lot of time trying to solve this, when it might have been quicker to just recreate my original path. 😅 But I'd really like to understand where it went wrong.

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *

    Inkscape Preferences [shift+ctrl+p]
    [Behaviour > Clones]
    [Relink duplicated clones: Yes]
    (You may have to restart Inkscape)

    If I remember correctly, there was in past versions a subtle difference in behaviour between duplication [ctrl+d] and copy-paste [ctrl+c] [ctrl+v]. Duplicating a clone-and-parent pair linked the new clone to the original parent (i.e. an exact duplicate) whereas copy-paste would link the new clone to the new parent. It seems that 1.3 has eliminated this difference.

  3. #3
    iva iva @iva-has-crayons

    Thank you for your speedy response, Paddy_CAD.

    I followed your instructions and checked "Relink duplicated clones" in settings.
    Restarted Inkscape. Restarted my computer, just in case.

    Unfortunately, it is still not pasting correctly.

    Just for debugging purposes, I tried doing a straight clone of my path, and was able to copy and paste the original and clone with no problem.
    But when I grouped the path and cloned the group, I still had the same problem with pasting them.

  4. #4
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *

    I can't reproduce the error. I drew a path, cloned it [alt+d], flipped the clone [h], grouped the parent and clone [ctrl+g], copied the group [ctrl+c], opened a new drawing [ctrl+n], and pasted [ctrl+v]. The copied clone is correctly linked to the copied parent, both inside the pasted group.

  5. #5
    iva iva @iva-has-crayons

    Right, I have also not able to reproduce it. It seems to be a problem with this specific path, when grouped.

    I've uploaded the Inkscape svg to OneDrive, if that could be of any help.

    https://1drv.ms/u/s!ArW30nu-oyJN9R-X4m5TuTB1wEir?e=jjhzgh

    Thanks for helping! 🙂

  6. #6
    Paddy_CAD Paddy_CAD @Paddy_CAD

    This is exceedingly strange. When I copy and paste the group, there's seems to be a bug when creating id's for the subgroup. Mysteriously this doesn't happen when I create my own nested groups.

    Workaround: Select the group, duplicate [ctrl+d], cut [ctrl+x], open the target drawing, paste [ctrl+v].

  7. #7
    Tyler Durden Tyler Durden @TylerDurden

    Reproduced in v 1.3, Linux mint.

    Another workaround: when initially grouping the first path, change the group's ID to "foo" or anything but gn. (n being a number)

    Please report this as a bug.

    I can test later in Windoze.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Clone not copying to new document in 1.3