aseprite_set_frame_duration
Set frame durations in milliseconds across all frames or a specific range to control animation playback speed, e.g. 100 ms for 10 fps.
Instructions
Set frame durations in milliseconds. Applies to a range when from/to are given, otherwise to every frame. 100 ms = 10 fps is a good default; 40-80 ms suits fast actions like a run cycle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Zero-based frame index (omit for the first frame). | |
| from | No | Zero-based frame index (omit for the first frame). | |
| document | No | Document to act on: a short name inside the art folder ("hero"), a relative path, or an absolute .aseprite path. Omit to use the active document. | |
| durationMs | Yes | Duration in milliseconds (default 100). |