Overview
Krita Random Exporter is a Python script for exporting randomized combinations of visible Krita layers, with weighted traits, rarity groups, unique combinations, JSON metadata, and optional animated GIFs.
Setup
Edit the configuration block in randomMassExporter.py, then run it through Krita's built-in Scripter plugin with the source document open.
Layer hierarchy in the Krita file needs to mirror the attribute setup in the script, with names formatted as traitName_variationName.
Animation export
For animation output, enable GENERATE_ANIMATION and point FFMPEG_EXECUTABLE at FFmpeg.