← back to roto on ba3a.dev

CycleSettings

@Serializable
data class CycleSettings(val minPeriodMs: Int = 300, val maxPeriodMs: Int = 2500, val repeatsPerCycle: Int = 1, val contactBand: Double = 0.15, val keyFrames: Int = 8)

How a clip's cycle is found and its key frames proposed; stored per clip in profile.json.

  • minPeriodMs and maxPeriodMs bound how often the silhouette may repeat.

  • repeatsPerCycle is how many times the silhouette repeats in one animation cycle. A walk or a run repeats twice: halfway through, the legs have swapped and the outline looks the same, though the near and far leg have not. One for anything whose outline repeats only once.

  • contactBand is the bottom fraction of the figure's height its leg spread is measured in.

  • keyFrames is how many key frames are proposed per cycle, or across a clip that does not loop.

Constructors

Link copied to clipboard
constructor(minPeriodMs: Int = 300, maxPeriodMs: Int = 2500, repeatsPerCycle: Int = 1, contactBand: Double = 0.15, keyFrames: Int = 8)

Properties

Link copied to clipboard

the bottom fraction of the figure its leg spread is measured in

Link copied to clipboard

how many key frames to propose per cycle

Link copied to clipboard

the longest repeat to look for, in milliseconds

Link copied to clipboard

the shortest repeat to look for, in milliseconds

Link copied to clipboard

how many times the silhouette repeats in one animation cycle