Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Get attribute

Extracts attribute (metadata) by name and data type.


Inputs

  • geometry

    • Accepts a single geometry connection (unless the SHIFT key is held).
  • mode

    • Sets where the attribute is read from. This can be per point (from each point of the input geometry), per primitive (from each primitive of the input geometry), on node (from the node), or on graph (from the graph).
  • type

    • Sets the data type of the attribute to read. This can be boolean, integer or float, vector, or string.
  • attribute name

    • The name of the attribute to read.
  • default

    • The value to output when the named attribute is not found. The active default input depends on the selected type: a number for boolean, integer or float, a vector for vector, or a string for string.

Outputs

  • number

    • The attribute value as a number (when type is boolean, integer or float and a single value is returned).
  • vector

    • The attribute value as a vector (when type is vector and a single value is returned).
  • string

    • The attribute value as a string (when type is string and a single value is returned).
  • number list

    • The attribute values as a number list (when reading per point or per primitive with type boolean, integer or float).
  • vector list

    • The attribute values as a vector list (when reading per point or per primitive with type vector).
  • string list

    • The attribute values as a string list (when reading per point or per primitive with type string).

Note(s)

  • See Attribute for more information on attributes, and their function in the graph.

  • Use this node with the Add attribute node to retrieve attribute data that was previously written.

  • Other names for this node include: GetAttribute, Attribute To List, and Read Attribute.

Example(s)