Sets a named attribute on the input list, computing one value per item via the value-producing input. That input is evaluated once per item, with the item's index and the item itself (as a list containing only that item, passed as a vararg) provided via context, so the upstream pipeline can return a different value per item that may be derived from the item's own data. If the attribute already exists, its values are replaced; if not, it's added. The value is type-erased into an Item<AttributeValueDyn> by the auto-inserted input adapter, so this node only monomorphizes over T instead of the cartesian product (T, U).
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Content | The list to set the named attribute on (one value per item). Primary Input | Artboard[]BlendMode[]Color[]GradientSpreadMethod[]GradientType[]Gradient[]Graphic[]Raster[]String[]Transform[]Vec2[]Vector[]bool[]f32[]f64[]u32[]u64[] |
| Name | The attribute name (key) to write or replace. Default: | String |
| Value | The node that produces the attribute value for each item. Called once per item with the item's index in context. Exposed to the Graph by Default | AttributeValueDyn |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | String[]bool[]f32[]f64[]u32[]u64[]Vec2[]Transform[]Vector[]Graphic[]Raster[]Color[]Gradient[]Artboard[]BlendMode[]GradientType[]GradientSpreadMethod[] |