Studio Yotsuba
Back to Node List

Variant Record Builder

variant_record_builder

Creates an explicitly named variant record from a snapshot or JSON key/value table.

Reviewed
Guide available

Input Ports

NameTypeDescription
Snapshot
snapshot
VariantSnapshot
Optional base snapshot. JSON values override matching keys.

Output Ports

NameTypeDescription
Record
record
VariantRecord
Named variant record.
Record List
records
List<VariantRecord>
One-item list ready for List Create or Batch Render.
Snapshot
snapshot
VariantSnapshot
Final merged snapshot.
Name
name
Text
Display/export name.

Parameters

NameTypeDefaultRangeDescription / Options
Internal ID
record_id
Text
variant—

Stable non-empty identifier for the record. Unicode is allowed.

Display Name
name
Text
Variant—

Human-readable name passed to Batch Render and Batch Export.

Export Slug
slug
Text
——

Optional portable ASCII export name (letters, digits, '_' or '-'). When set, it becomes the record name used downstream.

Note
note
Text
——

Human-readable note stored in the record.

Favorite
favorite
Bool
false—

Mark the record as a favorite.

Snapshot Values
snapshot_json
CustomData
{"version":1,"snapshot":{}}—

JSON object of internal keys and values, for example {"moss_strength":1}.

Overview

Turns human-meaningful variants such as moss, cracks, or color schemes into explicit VariantRecord values. Display names and internal IDs may use Unicode. Only the portable export slug is restricted to ASCII letters, digits, _, and -.

Usage tips

  • In snapshot_json, write a JSON object containing internal keys and values for variables or exposed parameters.
  • name is human-readable; slug is the filename-friendly name passed from Batch Render to Batch Export.
  • record_id may contain Unicode as long as it is not empty. Leave slug empty to keep using name downstream, or use only letters, digits, _, and -.
  • Combine several records outputs with List Create, then connect them to Batch Render.items.
  • Use the snapshot input to inherit existing values and overwrite only keys also present in snapshot_json.

Common pitfalls

Keys in snapshot_json must match internal evaluation keys, not display names. null cannot be a snapshot value; use a Bool, number, string, array, or object.

Related nodes

  • list_create: collect named records into a list
  • batch_render: generate one image per record
  • batch_export: named export using Batch Render.names
  • variant_select: select one record from the list
Back to Node List