← back to roto on ba3a.dev

PresetInfo

@Serializable
data class PresetInfo(val name: String, val description: String, val facings: List<String>, val mirrorPairs: List<MirrorPair>, val actions: List<String>, val canvas: Canvas, val layout: @Serializable(with = OutputLayoutSerializer::class) OutputLayout, val outputFolder: String, val formats: List<OutputFormat> = emptyList())

What preset.json holds: a ProjectPreset without its palette and ramps, which a bundle keeps in their own files. It has no afterPublish, so a shared file never makes Roto run a command, and reading rejects any key it does not know. Validated on construction by building the ProjectConfig it would give, with a probe id. Throws IllegalArgumentException naming the problem.

Constructors

Link copied to clipboard
constructor(name: String, description: String, facings: List<String>, mirrorPairs: List<MirrorPair>, actions: List<String>, canvas: Canvas, layout: @Serializable(with = OutputLayoutSerializer::class) OutputLayout, outputFolder: String, formats: List<OutputFormat> = emptyList())

Properties

Link copied to clipboard

the actions the project animates

Link copied to clipboard

the canvas every published frame is drawn on

Link copied to clipboard

a one-line summary

Link copied to clipboard

the facings the project draws

Link copied to clipboard

the files wanted beside the published frames

Link copied to clipboard
val layout: @Serializable(with = OutputLayoutSerializer::class) OutputLayout

the named layout of published frames, written by its OutputLayout.key

Link copied to clipboard

the facings that may be mirrored into each other

Link copied to clipboard

the preset's name

Link copied to clipboard

the folder inside the project the layout is built under

Functions

Link copied to clipboard

The ProjectConfig for a project called id: this setup, no afterPublish.