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.

Set Valuesxvalues

Inputs

PortAcceptsRequiredDescription
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

ParameterKindDefaultChoices / rangeUnitNotes
Name
name
str values
Mode
mode
choice replace replace | add

Used by

Browse all templates using Set Values