← back to roto on ba3a.dev

LintContexts

Builds the LintContext of a clip; the one place the CLI and the app both get it from.

Functions

Link copied to clipboard
fun of(project: Project, clip: Clip, models: ModelRepository, clipDurationsMs: List<Int>, settings: LintSettings = LintSettings()): LintContext

The context for clip: the project's palette and ramps, the clip's depth and loop settings, and, when the clip names a model in models, that model's measurement and durations. The draft always has its outline, so the outline rule is on. clipDurationsMs is the duration of every frame of the clip's handoff.