Write Attribute

Sets a named attribute on the input Table, 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 Table 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 AttributeValueDyn by an auto-inserted convert node, so this node only monomorphizes over T instead of the cartesian product (T, U).

Interface

Inputs

ParameterDetailsPossible Types
Content

The Table to set the named attribute on (one value per item).

Primary Input

Table<Artboard>
Table<BlendMode>
Table<Color>
Table<DAffine2>
Table<GradientSpreadMethod>
Table<GradientStops>
Table<GradientType>
Table<Graphic>
Table<Raster>
Table<String>
Table<Vector>
Table<bool>
Table<f64>
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

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Table<Artboard>
Table<Graphic>
Table<Vector>
Table<Raster>
Table<Color>
Table<GradientStops>
Table<f64>
Table<bool>
Table<String>
Table<DAffine2>
Table<BlendMode>
Table<GradientType>
Table<GradientSpreadMethod>