Data: Attribute

This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.

Nodes in this category read and write the named attributes stored on the items of a list, with values calculated individually for each item.

Nodes

NodeDetailsPossible Types
Read Attribute Artboard

Reads a named Artboard attribute from the input list, outputting each value as an element of a new Artboard[].

ListDyn → Artboard[]
Read Attribute Blend Mode

Reads a named BlendMode attribute from the input list, outputting each value as an element of a new BlendMode[].

ListDyn → BlendMode[]
Read Attribute Bool

Reads a named Bool attribute from the input list, outputting each value as an element of a new Bool[].

ListDyn → Bool[]
Read Attribute Color

Reads a named Color attribute from the input list, outputting each value as an element of a new Color[].

ListDyn → Color[]
Read Attribute Gradient Form

Reads a named GradientForm attribute from the input list, outputting each value as an element of a new GradientForm[].

ListDyn → GradientForm[]
Read Attribute Gradient Hue Direction

Reads a named GradientHueDirection attribute from the input list, outputting each value as an element of a new GradientHueDirection[].

ListDyn → GradientHueDirection[]
Read Attribute Gradient Interpolation

Reads a named GradientInterpolation attribute from the input list, outputting each value as an element of a new GradientInterpolation[].

ListDyn → GradientInterpolation[]
Read Attribute Gradient Space

Reads a named GradientSpace attribute from the input list, outputting each value as an element of a new GradientSpace[].

ListDyn → GradientSpace[]
Read Attribute Gradient Spread

Reads a named GradientSpread attribute from the input list, outputting each value as an element of a new GradientSpread[].

ListDyn → GradientSpread[]
Read Attribute Gradient Stops

Reads a named Gradient attribute from the input list, outputting each value as an element of a new Gradient[].

ListDyn → Gradient[]
Read Attribute Number

Reads a named Number or Integer attribute from the input list, outputting each value as an element of a new Number[].

ListDyn → Number[]
Read Attribute Raster

Reads a named Raster attribute from the input list, outputting each value as an element of a new Raster[].

ListDyn → Raster[]
Read Attribute String

Reads a named String attribute from the input list, outputting each value as an element of a new String[].

ListDyn → String[]
Read Attribute Transform

Reads a named Transform attribute from the input list, outputting each value as an element of a new Transform[].

ListDyn → Transform[]
Read Attribute Vector

Reads a named Vector attribute from the input list, outputting each value as an element of a new Vector[].

ListDyn → Vector[]
Write Attribute

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).

String[] → String[]
Bool[] → Bool[]
Number[] → Number[]
Integer[] → Integer[]
Vec2[] → Vec2[]
Transform[] → Transform[]
Vector[] → Vector[]
Graphic[] → Graphic[]
Raster[] → Raster[]
Color[] → Color[]
Gradient[] → Gradient[]
Artboard[] → Artboard[]
BlendMode[] → BlendMode[]
GradientForm[] → GradientForm[]
GradientSpread[] → GradientSpread[]