Overview
Batch-produces a list of numeric candidates, such as five steps from 0 to 1. It
is an entry point to variant workflows: compare a parameter across several values,
switch between them with variant_select, or batch-produce them with batch_render.
Usage tips
- Start by using it as a comparison tool when you are unsure which brightness looks
best.
variant_range(5 steps) âvariant_select(switch by index) lets you click through parameter variations side by side. keynames the destination parameter. When passing candidates tobatch_render, it must match the destination variable name.- For a nonuniform sequence such as a quadratic curve, transform the
valuesoutput withlist_map.
Related nodes
seed_rangeâ sibling node dedicated to seedsvariant_selectâ select and inspect one candidatecartesian_productâ expand combinations with another axisbatch_renderâ render the candidate list in a batchlist_mapâ make a numeric sequence nonlinear
Read this first
- This node does not create one value.
- It creates multiple candidates.
- With
count=5, it returns five candidates.
Understanding the outputs
| Output | Contents | Use |
|---|---|---|
values |
Raw numbers | When you only need the numbers |
snapshots |
Application-ready key=value values |
Pass candidates to BatchRender or downstream nodes |
variants |
Saved form with names and recipes attached to snapshots | Save, select, or display as a list |
recipe |
How the entire candidate set was made | Preserve how it was generated |
Start with this example
Use these settings:
key = valuestart = 0end = 1count = 5value_type = Float
The range from 0 to 1 is divided into five values:
[0.0, 0.25, 0.5, 0.75, 1.0]
Value list
[0.0, 0.25, 0.5, 0.75, 1.0]
Snapshot list
[
{ "version": 1, "values": { "value": 0.0 } },
{ "version": 1, "values": { "value": 0.25 } },
{ "version": 1, "values": { "value": 0.5 } },
{ "version": 1, "values": { "value": 0.75 } },
{ "version": 1, "values": { "value": 1.0 } }
]
Variant list
The first entry looks roughly like this:
{
"version": 1,
"id": "range:value:0",
"name": "value=0.000",
"favorite": false,
"snapshot": {
"version": 1,
"values": { "value": 0.0 }
},
"recipe": {
"version": 1,
"kind": "range",
"label": "value",
"parameters": {
"key": "value",
"start": 0.0,
"end": 1.0,
"count": 5,
"value_type": "Float"
}
},
"note": null
}
Recipe
{
"version": 1,
"kind": "range",
"label": "value",
"parameters": {
"key": "value",
"start": 0.0,
"end": 1.0,
"count": 5,
"value_type": "Float"
}
}
Common uses
- Sweep brightness or strength across five steps.
- Switch through candidates one at a time with
VariantSelect. - Use it as one axis of
CartesianProduct. - Pass it to
BatchRenderfor batch production.
Notes
- With
count=1, the node returns onlystart. - With
count>1, it places values evenly fromstartthroughend. - With
value_type=Int, each sample is rounded to an integer. - In
Intmode, a narrow range with a largecountcan produce duplicate integers. Duplicates are retained for compatibility and a nonfatal Inspector warning is shown. - When connecting to
BatchRender, setkeyto a variable name, avariable_refnode id, ornodeId:paramId.