Studio Yotsuba
Back to Node List

Loop Fit

loop_fit

Appends the first sample at the document length so playback stops just before returning to the start

Reviewed
Guide available

Input Ports

NameTypeDescription
Layer
layer
RecordedLayer
RecordedLayer document to loop-fit
Progress
progress
Float
Optional normalized progress (0.0-1.0). Leave unconnected to follow the animation time.

Output Ports

NameTypeDescription
Layer
layer
RecordedLayer
Loop-fitted RecordedLayer document
Value
value
Map
Evaluated loop-fitted values
Summary
summary
Text
Short summary string

Overview

Adjusts a recording layer (RecordedLayer) so it connects smoothly as a loop. It adds the initial state at the end to remove the jump from the last state back to the first. This is the recording-layer counterpart of clip_loop_fit.

Usage tips

  • Place it immediately after recording: record_take → loop_fit → keyframe_clip. If you need to adjust after making a clip, clip_loop_fit provides the same kind of effect.
  • The more the final pose differs from the initial pose, the more abrupt the return becomes. Record the ending close to the beginning for a clean loop.

Related nodes

  • clip_loop_fit — equivalent processing at the clip stage
  • record_take / pose_step_track — recordings to correct
  • layer_mixer — combines this correction with composition

Notes

  • The current implementation is minimal: it appends the first sample of each layer at the duration position.
  • Advanced smooth or tangent correction is not performed yet.
  • This node provides endpoint closure by appending the first sample at duration. It does not periodically wrap times outside duration; supply a looping time/progress source for periodic playback.
  • The only evaluation input is progress (normalized 0–1); the legacy time pin has been removed.
Back to Node List