ComfyUI Node
CV Pick Value (sorted)
Picks one scalar out of a small array: sorts the values (or sorts by the optional key array, e.g. 'the angle of the hand with the largest radius') and returns the rank-th one. The rank is clamped to the array, and an empty input yields 0.0 / index -1 instead of an error - gate on a found flag upstream.
CV Pick Value (sorted)
- values
- key
- value
- index
◄orderlargest first►
◄rank1►
Categoryimage/CV/points
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| values | NPARRAY | (N,) numeric array. | |
| order | COMBO | largest first | Sort direction before applying rank (by values, or by 'key' if connected). |
| rank | INT | 11–4096 | 1 = first in the chosen order; clamped to N. |
| keyopt | NPARRAY | Sort by these values instead (same length); the output still comes from 'values'. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| value | FLOAT | — |
| index | INT | Position in the input array (-1 when empty). |