← back to roto on ba3a.dev

ProjectPreset

data class ProjectPreset(val name: String, val description: String, val facings: List<String>, val mirrorPairs: List<MirrorPair>, val actions: List<String>, val canvas: Canvas, val layout: OutputLayout, val outputFolder: String, val palette: Palette, val ramps: RampSet, val formats: List<OutputFormat> = emptyList())

Everything in a project setup that is not the project's identity: facings, mirror pairs, actions, canvas, output layout, output formats, palette and ramps. It holds no id, no project folder and no afterPublish, so sharing one never makes Roto run a command. Validated on construction by building the ProjectConfig it would give, and by checking that every ramp colour and the outline are in the palette. 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: OutputLayout, outputFolder: String, palette: Palette, ramps: RampSet, formats: List<OutputFormat> = emptyList())

Types

Link copied to clipboard
object Companion

Ways to build a preset.

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

The preset without its palette and ramps: what preset.json holds.

Link copied to clipboard

the named layout of published frames

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

Link copied to clipboard

the project's palette

Link copied to clipboard

the project's ramps, every colour one of palette's

Functions

Link copied to clipboard

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