Author Topic: Am I understanding "clone" "cut + paste" correctly here?  (Read 287 times)

June 24, 2019, 06:24:27 PM
Read 287 times

Bad Hair Day

  • Jr. Member

  • Offline
  • ***

  • 38
  • Gender
    Male

    Male
4j qqq111.png
*4j qqq111.png
(162.52 kB . 1366x768)
(viewed 52 times)


In the picture, you can see the hexes that I built up into a "big hex".  There is a single gold colored hex in the middle of it all, and then alternating light brown and dark brown hexes in the middle of the "circle" of 18 grey hexes around each of the brown hexes.  And the greys alternate color with the browns. 

I did all this with clones.  You can see the parent clones on the left side of the screen.  If I change one of them, then all the same colored clones in my "big hex" change as well. 

This is the beginning of my process, but before I go on, I want to make sure I am understanding this right...

First:  It takes up a lot of memory for me to have hexes that are also clones. 

So, in an effort to avoid that, I plan to select all the hexes and then "Edit" "Clone" "Unlink Clones".   

That will solve the problem of all those clones taking up too much memory, right? 

My final picture will have 3,834,141 individual hexes in it.  With each hex being 1cm, then this would cover a canvas about 20 meters by 20 meters. 
  • 1.0 Alpha
  • Win10

June 25, 2019, 05:46:13 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Hhmm, it's my understanding that using clones is good a way to reduce the file size (when there are lots of identical objects, like your project).  In another topic, you mentioned that you had been making a clone of a clone of a clone of a clone, etc.  Doing it like that, I think, will increase the file size, instead of the other way around.  So if you did it like that, you should try making a clone directly from the parent, each time.

The Tiled Clones dialog can create a lot of clones that way.  You can do it fairly quickly, because you don't have to bother with the tiling.  You just want the clones.  I'll make a screenshot or 2, to show you how to set it up.

Yes, I think you understand clones correctly otherwise.  If you change anything about the parent, all the clones will change in the same way, whatever the change was.

Interesting!  Since it's been a few years since I heard the advice about not making clone of clone of clone etc, I decided to make some quick tests.  Maybe something has changed about how Inkscape works regarding clones?? 

In my test, making clone of clone of clone makes almost exactly the same amount of XML code, as making clones directly from the parent each time.  (To my understanding, the amount of XML code is a relative indication of file size.)

Using Tiled Clones dialog to create the clones makes more XML than clone of clone of clone.  And making duplicates (or copies) rather than clones makes the file size much, much larger.

So I would say that using clone of clone of clone does not seem to create the same problems that it did in earlier versions of Inkscape.  But I can't say that as a fact.  It's just my observation.

But I can say that using clones does reduce the file size quite significantly, compared to copies or duplicates, no matter which way you use to make the clones.

Here's how you can use Tiled Clones dialog to create a lot very quickly.  First before you start, click Reset button in the bottom section (resets everything to zero on all the tabs, in case you made previous settings).

On the Symmetry tab, choose P1 Simple.  Here's a screenshot of the Shift tab.  This will create 60 clones from the parent, and they are all on top of each other.

tc0.png
*tc0.png
(56.25 kB . 643x678)
(viewed 49 times)


  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann