← back to roto on ba3a.dev

ModelSources

Picks and builds the ModelSource for a path: the artist chooses a file or folder, never a format.

Functions

Link copied to clipboard

The kind of source at path; a ModelException when it is none of them or does not exist.

Link copied to clipboard
fun open(path: Path, config: ProjectConfig, durationMs: Int, pattern: String? = null): ModelSource

The source at path for config. durationMs is every frame's duration where the source gives none, and pattern the atlas name pattern (null: the one the project's output template gives). Every animation loops until the artist says otherwise. A bad pattern is a ModelException.