Add attribute

Adds attributes (metadata) to points, primitives, nodes, or graphs.


Inputs

  • geometry

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

    • Sets the type of attribute to add. These are per point (added to each point of the input primitives), per primitive (added to each of the input primitives), on node (added to the node), and on graph (added to the graph).
  • attribute name

    • The name to give the attribute.
  • value

    • The value to assign to the attribute. This can be any of the basic data types (number (number, integer, and boolean), vector (vector and color), or string).

Outputs

  • geometry

    • Output primitives.
  • points

    • The list of points of the output primitives.
  • points.x

    • The list of x values of the points of the output primitives.
  • points.y

    • The list of y values of the points of the output primitives.
  • points.z

    • The list of z values of the points of the output primitives.

Note(s)

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

  • This node can be used in conjunction with the get attribute node to later retrieve the attribute data.

  • Other names for this node include: AddAttribute, Set attribute and Write attribute.

Examples