5. Grups de capes

«Layer Groups» enable you to group layers together in a hierarchical structure. This will make it easier to manage your project if you have many layers.

Crea un grup de capes

You can create a layer group by clicking the New Layer Group button at the bottom of the Layers Dialog, by using the menu command LayerNew Layer Group, or through the layer dialog context menu.

This new empty layer group appears just above the current layer. It is recommended to give it a descriptive name. To change the layer group name, double-click the name, press F2, or right-click the layer and select Edit Layer Attributes from the context menu. If you don't rename your layer groups, you can get confused when several groups have been created with names such as Layer Group #1, Layer Group #2, etc.

You can create multiple layer groups and you can embed them, that is include a layer group in another one.

Afegeix capes a un grup de capes

Podeu afegir capes existents a un grup de capes fent clic i arrossegant.

[Nota] Nota

La mà que representa el punter del ratolí hauria d'esdevenir més petita abans de deixar anar el botó del ratolí.

A thin horizontal line marks where the layer will be inserted.

To add a new layer to the current layer group, click the New Layer... button at the bottom of the Layers dialog, use the New Layer... command in the image menu, or press Shift+Ctrl+N.

When a layer group is not empty, a small icon appears. By clicking it, you can fold or unfold the group.

Layers that belong to a layer group are slightly indented to the right, allowing you to easily see which layers are part of the group.

Visibilitat

Si es fa invisible un grup de capes amb la icona de l'ull però es manté obert (de manera que les capes del grup es mostren a la llista), l'ull apareix barrat per indicar que aquestes capes no es mostren a la projecció final de la imatge, tot i que visibles al grup de capes.

Apujar o abaixar grups de capes

Podeu apujar i abaixar grups de capes en el diàleg de capes igual que feu amb les capes normals: fent clic i arrossegant, usant les fletxes d'amunt i avall en la part inferior del diàleg.

Duplica un grup de capes

Podeu duplicar un grup de capes: feu clic en el botó Crea un duplicat de la capa o feu clic dret i seleccioneu l'ordre Duplica la capa en el menú contextual emergent.

Moure grups de capes

Podeu moure un grup de capes a una altra imatge fent clic i arrossegant. També podeu copiar-lo i enganxar-lo amb Ctrl+C i Ctrl+V; llavors obtindreu una selecció flotant que haureu d'ancorar (amb el botó d'àncora en la part inferior del diàleg de capes).

També podeu moure un grup de capes al llenç: això duplica el grup dins del grup. Encadeneu totes les capes en el grup de capes duplicat, activeu l'eina Mou i, en la imatge, moveu la capa. Aquesta és una manera de multiplicar objectes en una imatge.

Elimina un grup de capes

Per eliminar un grup de capes, feu clic en el botó en forma de creu vermella en la part inferior del diàleg de capes o feu clic dret i seleccioneu Suprimeix la capa.

Incrusta grups de capes

When a layer group is activated, you can add another group inside it with the «Add New Layer Group» command. There seems to be no limit, except memory, to the number of embedded layer groups.

Modes de la capa i grups

Un mode de capa aplicat a un grup de capes actua només en les capes d'aquest grup. Un mode de capa per sobre d'un grup de capes actua sobre totes les capes inferiors, dins i fora dels grups de capes.

Imatge original

Figura 8.72. Mode de capa dins i fora del grup de capes

Mode de capa dins i fora del grup de capes

We added a white layer in the layer group with HSL Color mode: only the square and triangle turned gray.

Mode de capa dins i fora del grup de capes

We added a white layer outside and above the layer group with HSL Color mode: all layers underneath changed to gray, including the background layer.


Since GIMP 2.10, layer groups have a special layer mode: the Pass Through mode. This mode exists only if a layer group is active.

Si s'utilitza aquest mode en lloc d'un altre, les capes dins del grup es comportaran com si fossin una part de la pila de capes, sense pertànyer al grup. Les capes del grup es fusionen amb les capes de sota, dins i fora del grup.

Mentre que amb mode Normal les capes d'un grup es tracten com si fossin una sola capa que es fusiona amb altres capes de sota la pila; un modificador d'una capa dins del grup només fusiona les capes de sota del grup.

Més detalls sobre Ultrapassar Passa-per .

Opacitat

Quan un grup de capes està activat, els canvis en l'opacitat s'apliquen a totes les capes del grup.

Màscara de capa

Since GIMP 2.10, masks on layer groups are possible. They work similarly to ordinary layer masks, with the following considerations.

The layer group’s mask size is the same as the combined size of all its children at all times. When the group’s size changes, the mask is cropped to the new size — areas of the mask that fall outside of the new bounds are discarded, and newly added areas are filled with black (and hence are transparent by default).

We added a black (transparent) layer mask to the layer group, making the layers inside the group transparent (invisible).

Of course, you still can add a layer mask to a layer in the group to mask a part of the layer.

Buscant una capa

When working with a lot of layers, finding a particular layer in the list can be difficult. Since GIMP 2.10.10, a new on-canvas layer selection function is available. Use Alt+Middle click on the image element you want to find the layer this element belongs to. The available layers will be looped through to show the new active layer and the layer name will be temporarily displayed in the status bar.

Previsualització de la capa

There have been problems with slow preview rendering of layer groups in case of many layers in a large image. If you are experiencing this, you can disable rendering layer group previews in EditPreferencesInterface.