# Clones array, a mini-tutorial

**URL:** <https://krita-artists.org/t/clones-array-a-mini-tutorial/13330>\
**Category:** Resources\
**Created:** [October 20, 2020, 9:10am UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330 "2020-10-20T09:10:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lehko](https://krita-artists.org/user_avatar/krita-artists.org/lehko/32/17872_2.png) [@lehko](https://krita-artists.org/u/lehko)\
**Post date:** [October 20, 2020, 9:10am UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/1 "2020-10-20T09:10:19Z")

</div>

_edit : enhanced version, thanks to the advice of [raghukamath](https://krita-artists.org/u/raghukamath) and [tiar](https://krita-artists.org/u/tiar)_

Hi all !

Krita is full of useful features, and I’m very happy when I stumble upon a new one.

So I want to introduce you to a fancy tool that you have probably never heard of, and deserves more love: **clones array**

First, where can we find it ? :

 ![01](https://krita-artists.org/uploads/default/original/2X/f/fbe5b134545b4e147ed49a6bfafa1776d0dbb030.png)

And it’s look like this :

 ![02](https://krita-artists.org/uploads/default/original/2X/6/6b3d9cf78b167478adcc2d682bc7bb2356ad8053.png)

(I refer you to the [documentation](https://docs.krita.org/en/reference_manual/clones_array.html) for more details on each components)

Now, how can this be useful ?  
Here’s an example.

Let’s say you have a building, and you want to add windows.

 ![03b](https://krita-artists.org/uploads/default/original/2X/0/0a7f1c9c39a679e21eefc6057593d0fc8922da33.png)

Create a window shape on a separate layer and place it in a group.

 ![04b](https://krita-artists.org/uploads/default/original/2X/0/0664b777ee75582331127818ea66e89b9da24c31.png)

Then clone the group (right click on group\>_add\>clone layer_)  
 ![04_2](https://krita-artists.org/uploads/default/original/2X/9/9b2b8843d391f00c381de24b0cd46aea0e541f85.png)

With the clone layer selected, go in _layer_\>_split_\>_clones array_ and play with the properties

 ![5b](https://krita-artists.org/uploads/default/original/2X/b/b27e744e609449dae5de58654351989994ee15a0.png)  
Please note that it automatically creates a distance value, based on the size of your object. If you want more or less spacing between each element, you will have to play with these values.  
A small precision on the two values " - elements" and “+elements”.  
They represent the number of copies on an XY grid.  
So in a very basic way for the columns:  
-elements : copy to the left  
+elements: copy to the right  
for the rows :  
-elements: copy up  
+elements: copy down

You end up with something like that in your layers docker :

 ![5_2](https://krita-artists.org/uploads/default/original/2X/0/0a8e3ba95fbebe1df73c1664941a6f3c277080cd.png)

Make a group with everything that is outlined in red, and add a transform mask on this group (right click\>_add\>transform mask_)

 ![6b](https://krita-artists.org/uploads/default/original/2X/a/a9f93b3d920c972d941812ec4974c9f17123b851.jpeg)  
With this transform mask, you can adjust the placement later as much as you like.

Now, the fun part. Get back to the very first group you created wich contains the window drawing. Since it’s a group, you can change whatever you want in it, the result will be automatically transposed to its clones.  
For instance, change the window model or add a paint layer like so :

 ![6-2](https://krita-artists.org/uploads/default/original/2X/0/092499d8010c0eaa85737b4f5f096cad3f488d0e.jpeg)  
(please note that it can be laggy )

And _voila_ :

 ![7b](https://krita-artists.org/uploads/default/original/2X/5/57a9caed5fe83ee89381b6f6f2ecfa6056db4eea.jpeg)

Obviously it’s only a flat surface, but you can use it for background elements, or construct a guide for more complex stuff.

I hope you will find it useful. I haven’t seen much info about this tool (except the [documentation](https://docs.krita.org/en/reference_manual/clones_array.html), and the [release article](https://krita.org/en/item/new-clones-array-tool/)).  
Or maybe everyone but me knew this thing ! 😃

Feel free to correct it if you find errors or inaccuracies 🙂

---

<div class="post-metadata">

**Author:** ![halla](https://krita-artists.org/user_avatar/krita-artists.org/halla/32/18581_2.png) [@halla](https://krita-artists.org/u/halla)\
**Post date:** [October 20, 2020, 9:30am UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/2 "2020-10-20T09:30:55Z")

</div>

Lovely mini-tutorial 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![raghukamath](https://krita-artists.org/user_avatar/krita-artists.org/raghukamath/32/59144_2.png) [@raghukamath](https://krita-artists.org/u/raghukamath)\
**Post date:** [October 20, 2020, 9:56am UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/3 "2020-10-20T09:56:51Z")

</div>

Excellent tutorial. 👍

> [@lehko](#):
>
> After that you can merge the whole group, and finally place your window pattern on the building with _transform_\>_perspective_ (here I help myself with two vanishing points, also an useful tool).

It is is also possible to add the original and the array inside a group layer and add a transform mask to it. to preserve the original and arrays so that you can paint or make changes to it later.

---

<div class="post-metadata">

**Author:** ![tiar](https://krita-artists.org/user_avatar/krita-artists.org/tiar/32/22_2.png) [@tiar](https://krita-artists.org/u/tiar)\
**Post date:** [October 20, 2020, 9:47pm UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/4 "2020-10-20T21:47:09Z")

</div>

Would be awesome if you showed how one can color all the images at once later when they have the clones array. From your tutorial it doesn’t really show the advantage of using clone layers instead of standard duplicates of paint layers.

However it’s cool nonetheless, showing off a feature that is less known. Can I post a link to this tutorial on reddit?

---

<div class="post-metadata">

**Author:** ![lehko](https://krita-artists.org/user_avatar/krita-artists.org/lehko/32/17872_2.png) [@lehko](https://krita-artists.org/u/lehko)\
**Post date:** [October 21, 2020, 7:25am UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/5 "2020-10-21T07:25:35Z")

</div>

> [@Clones array, a mini-tutorial](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/3):
>
> Excellent tutorial. +1 It is is also possible to add the original and the array inside a group layer and add a transform mask to it. to preserve the original and arrays so that you can paint or make changes to it later.

> [@Clones array, a mini-tutorial](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/4):
>
> Would be awesome if you showed how one can color all the images at once later when they have the clones array. From your tutorial it doesn’t really show the advantage of using clone layers instead of standard duplicates of paint layers. However it’s cool nonetheless, showing off a feature that is less known. Can I post a link to this tutorial on reddit?

Thanks ! I was not aware of any of this !

If you don’t mind I’ll rewrite my post a bit adding this information, and then you will be able to share a more colorful tutorial.  
Indeed, it’s important to show how flexible these tools can be 🙂

---

<div class="post-metadata">

**Author:** ![lehko](https://krita-artists.org/user_avatar/krita-artists.org/lehko/32/17872_2.png) [@lehko](https://krita-artists.org/u/lehko)\
**Post date:** [October 22, 2020, 11:12am UTC](https://krita-artists.org/t/clones-array-a-mini-tutorial/13330/6 "2020-10-22T11:12:20Z")

</div>

Ok, I made an improved version 🙂  
(I can always change things later, of course)

Thanks all !
