Nodes ▸ Functions ▸ Dataset
Set Values
Attaches a named value array to a grid or stack: a single number filled everywhere, an array, or the first value array of another dataset.
Inputs
| Port | Accepts | Required | Description |
|---|---|---|---|
x | dataset | required | The dataset to attach values to |
values | primitive(number) primitive(array) dataset | required | The values: a number (filled), an array (dataset shape, or per-line on a stack), or a dataset (its first value array) |
Outputs
dataset(grid)dataset(stack)dataset(surface)
Parameters
| Parameter | Kind | Default | Choices / range | Unit | Notes |
|---|---|---|---|---|---|
Namename | str | values | |||
Modemode | choice | replace | replace | add |