Overview
Selects one entry by index from a list of variant candidates. Its main job is to
step through candidates from variant_range / seed_range with index and visually
compare which value works best.
Usage tips
- The basic comparison flow is
variant_rangeโvariant_selectโvariant_value_getโ the node that consumes the typed value. Changeindex, then read the chosen snapshot key in the type required downstream. - The
valuesoutput (Map) is convenient when you only need values. The node also outputs names and favorite state, supporting uses similar to a candidate-management UI. - To output every candidate at once, use
batch_render. Variant Select is for inspecting candidates one at a time.
Related nodes
variant_range/seed_rangeโ generate candidatesbatch_renderโ output every candidate in a batchvariant_value_getโ extract a typed value from the selected snapshot or values Mapvalue_selectโ simple N-way selection without variantscartesian_productโ expand candidates along multiple axes
Read this first
VariantSelectselects only one candidate.- It does more than select one: importantly, it breaks the candidate into convenient outputs.
Understanding the outputs
| Output | Contents | Use |
|---|---|---|
record |
Complete saved form of the candidate | Save in a UI or work with named entries |
snapshot |
Lightweight key=value form |
Pass to BatchRender or another downstream node |
values |
Map containing only the expanded snapshot values | When you only need the values |
name |
Candidate name | List or label display |
favorite |
Favorite state | UI display or management |
count |
Total number of candidates | Index control or display |
Start with this example
Suppose a preceding VariantRange creates candidates with these settings:
key = valuestart = 0end = 1count = 5
The candidates are:
[0.0, 0.25, 0.5, 0.75, 1.0]
Setting VariantSelect.index = 2 selects the third candidate, 0.5.
record
{
"version": 1,
"id": "range:value:2",
"name": "value=0.500",
"favorite": false,
"snapshot": {
"version": 1,
"values": { "value": 0.5 }
},
"recipe": {
"version": 1,
"kind": "range",
"label": "value",
"parameters": {
"key": "value",
"start": 0.0,
"end": 1.0,
"count": 5,
"value_type": "Float"
}
},
"note": null
}
snapshot
{
"version": 1,
"values": { "value": 0.5 }
}
values
{ "value": 0.5 }
name / favorite / count
name = "value=0.500"
favorite = false
count = 5
Common uses
- Select one candidate created by
VariantRangeorSeedRange. - Move
indexto compare candidates. - Pass
valuesdownstream when you need only the values.
Notes
- The Inspector automatically adjusts the maximum
indexto the number of input candidates. - For an empty list, the node returns only
count=0and does not send other outputs.