Animation Tools

mirror-layers

Copies the visible layers to an inverted stack atop the current stack. Its purpose is to create the layers corresponding to the "return" in an animation. The layers at both ends are not copied. For instance, if the visible layers are:

E
D
C
B
A

running the script will produce:

Copy of B
Copy of C
Copy of D
E
D
C
B
A

The script appears in the menus as Image/Mirror layers and has no parameters.

interleave-layers

This script creates a new image by interleaving layers in a stack of layers. It covers three different mode of operations:

  • Layers from the current image are interleaved with another stack of layers from another image. This can be used to blend two animations.
  • Layers from the current image are interleaved with copies of single layer which is placed above them. This is typically used to add a fixed image part (such as a title) to all frame in an animation.
  • Layers from the current image are interleaved with copies of single layer which is placed under them. This is typically used to add a backrground to a mobile image (often called a "sprite").
The top layer of each pair can be merged to the underlying layer with a given transparency and layer mode. The first stack of layers comes from the current image (the one through which the script is called).

In multiple-layer mode, the inserted layers come from another image already loaded in Gimp, as specified in the script parameters dialog.

In single layer mode, the inserted layer can come from any loaded image (including the one used as a source for the base layers)

The two images or the image and the layer should have the same size, and for multiple-layer both stacks should hold the same number of layers

Only visible layers of both images are used, so work layers can be left out by making them invisible.

The script is started by the Image/Interleave layers menus.

Options:

Layers source (multiple-layer mode)

The image from which the inserted layers are obtained.

Layer (single-layer mode)

The layer which is interleaved with the current image layers.

Opacity

An opacity to be applied to all top layers.

Mode

A layer mode to be applied to all top layers.

Merge

If true, the top layers of each pair are directly merged into the other layers, using the specified opacity and layer mode.