← back to roto on ba3a.dev

ProjectExporter

The inverse of ProjectScaffolder: turns an open project back into a ProjectPreset.

Functions

Link copied to clipboard
fun export(project: Project, name: String, description: String): ProjectPreset

The preset for project, called name and described by description. It holds the project's palette and ramps, and leaves out the id, the folder and afterPublish. The output paths must match a named OutputLayout; otherwise this throws PresetException. A palette or ramps file that fails to load propagates unchanged.