reverse_frames
Reverses the order of a run of frames in an Aseprite sprite, preserving timing and layers. Useful for creating mirrored animations or reversing a sequence without re-authoring.
Instructions
Reverse the order of a run of frames, keeping their timing with them.
Reversing a walk to get its mirror, or a grow to get a shrink, is a normal move and
otherwise means re-authoring the whole thing. Whole frames move: every layer's cel
travels together, and each frame keeps its own duration.
Args:
tag: Reverse one tag's frames.
frames: Reverse these frames instead. They must be one unbroken run, because
Aseprite reverses everything between the first and the last: a gapped list
would silently take in the frames in between.
Defaults to the whole sprite when neither is given.
**Tags mark positions, not pictures.** A tag over the reversed frames keeps its own
range and now covers them in their new order, which is usually what was wanted for a
tag that spans the whole run and rarely what was wanted for one that spans part of
it. The result lists every tag that overlapped, so the ones worth revisiting are
named rather than left to be discovered later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| frames | No | ||
| filename | Yes |