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), oron graph(from the graph).
- Sets where the attribute is read from. This can be
-
type
- Sets the data type of the attribute to read. This can be
boolean, integer or float,vector, orstring.
- Sets the data type of the attribute to read. This can be
-
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 forvector, or a string forstring.
- The value to output when the named attribute is not found. The active default input depends on the selected type: a number for
Outputs
-
number
- The attribute value as a number (when type is
boolean, integer or floatand a single value is returned).
- The attribute value as a number (when type is
-
vector
- The attribute value as a vector (when type is
vectorand a single value is returned).
- The attribute value as a vector (when type is
-
string
- The attribute value as a string (when type is
stringand a single value is returned).
- The attribute value as a string (when type is
-
number list
- The attribute values as a number list (when reading per point or per primitive with type
boolean, integer or float).
- The attribute values as a number list (when reading per point or per primitive with type
-
vector list
- The attribute values as a vector list (when reading per point or per primitive with type
vector).
- The attribute values as a vector list (when reading per point or per primitive with type
-
string list
- The attribute values as a string list (when reading per point or per primitive with type
string).
- The attribute values as a string list (when reading per point or per primitive with type
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.