Merge layers

When it is no longer useful to work with several layers, you have the possibility to merge the layers.

There are two ways to merge layers:

1) You can drag a layer on another (as we briefly mentioned in the Flip layers chapter in lesson 3).

This will make the merge options appear:

- You can merge a layer with another using blending modes: Color, Behind, Erase, Shade, Light, etc.
- If you tick the Stamp field, the merger is made according to the moved layer's opacity setting and the A color.
- You may choose to cancel or keep the original layer with the Erase source option.

2) You can also use the Merge ( ) button in the Timeline, on the left of the New button.

The Merge popup menu in the Timeline offers you six options for this purpose.

- Merge selected layers*: the non-selected layers are not merged.
- Merge visible layers: in this case, the hidden layers will remain intact.
- Merge all layers: the resulting layer will contain the currently displayed image.
- Merge Down and Below: the current layer will be merged with the layer(s) under.
- Merge Current group's layers: all layers from the current group will be merged.
- Merge Other groups' layers: all layers from other groups will be merged.

* For Layers selection, please refer to the chapter on this subject in lesson 03. These options are also available in the Layer main menu.

TVPaint Animation will always try to create replicate the your instances' structure in the merged layer.

Below, four layers A, B, C and D are going to be merged (we used the option Merge all Layers). The resulting layer uses the instances system.

The empty space between the two original layers is replaced by an empty instance.