Skip to main content

Module transform

Module transform 

Source
Expand description

Pipeline-mechanical clip transforms, ported from the incubating bake’s Python: frame-window slicing, hold-extension, and gait-anchor rotation. Scope rule (DESIGN.md §1): animsmith may rewrite a clip only in ways whose correctness its own checks can verify.

Structs§

GaitAlignOutcome
Outcome of align_gait_anchor.

Functions§

align_gait_anchor
Rotate a cyclic clip in time so its measured stride anchor (the trough of the L−R foot-height fundamental) lands at clip time 0.
hold_extend
Append one key per track duplicating its final value hold_s seconds after its last key (a linear hold — charge/block poses). The clip duration extends to the longest held end.
slice
Keep only the keys inside [start, end] seconds (with a half-frame epsilon at fps absorbing float drift from earlier retimings) and retime them so the window starts at 0. Cubic tangent triplets move with their keys. The clip duration becomes end - start.