move_frame
Reorder animation frames by moving a frame to a new position, carrying its cels and duration so linked cels stay linked. Reports affected tags after the move.
Instructions
Move one frame to another position, taking its cels and its duration with it.
Fixing an ordering mistake otherwise means deleting and redrawing. Nothing is copied:
the frame keeps its identity, so linked cels stay linked.
Args:
frame: The frame to move, 1-based.
to: Where it should end up, 1-based, in the numbering *after* the move. Moving
frame 2 to 5 on a six-frame sprite gives 1, 3, 4, 5, 2, 6.
**Tags mark positions, not pictures.** A tag between the two positions keeps its own
range and now covers a different set of drawings. The result names every tag that
overlapped the frames in between, because that is the part worth checking and it is
invisible in the frame count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| frame | Yes | ||
| filename | Yes |