acron.keyframes

Keyframe tracks: sampling and loop folding, format-agnostic.

A Track is a plain keyframe list — (time, value) pairs with optional cubic-bezier handles — for one property of one target. This module knows how to sample one (sample_track(), real cubic bezier solved for time) and how to fold an ever-growing clock into an animation’s own time (wrap_time(), linear / ping-pong loop modes). Where the tracks come from is someone else’s business (acron.gdformat.anim2d reads them out of Godot scenes; baked acron scenes will produce the same shape).

Track(path, prop, axis, keys[, handles])

One animation track: a target path, a property, and its keyframes.

Global Functions

sample_track(track: Track, t: float)

The track’s value at time t (seconds), clamped at both ends.

wrap_time(t: float, length: float, loop_mode: int) → float

Fold an ever-growing clock into the animation’s own time.