With my interleave-layers script:
For interleave-layers:
- For each animation:
- Load the zoo image
- File>Open as layers and load the animation
- Chain-Link all the layers of the animation (if you don't know what the layer "chain-link" is, see here).
- Move one of these layers where you want the animation to be, this will move the other layers when you confirm the move (due to the link).
- Resize all these layers to the zoo image size (which will add transparency as padding). Either use Layer>Layer to image size on all layers, or, quicker:
- Image>Canvas size, and add one pixel in X, and select "Resize all layers"
- Image>Canvas size, set back to initial size, and select "Resize all layers"
- Image>Canvas size, and add one pixel in X, and select "Resize all layers"
- Hide the zoo layer (yes, in both images)
- Load the zoo image
- In first image: Image>Interleave layers>Interleave single layer (sprite mode), select the zoo layer, and leave other options to the default. This should create a new image where copies of the zoo image have a merged frame of the animation. If you play this you should have one animation working.
- In that new created image: Image>Interleave layers>Interleave stacks of layers, select the image with the second animation layers, and leave other options to the default. This should create a new image where copies of the zoo image have a merged frame from each animation.
For interleave-layers:
- the stack of layers are the visible layers, so make sure the zoo frame is no visible otherwise it will also be taken as an animation frame
- all layers should have exactly the same size (which is the canvas size)
- when merging the stacks, the stacks should have the same number of layers (in other words, the same number of visible layers in each image)