attr

Syntax

  • attr id = expression

Parameters

  1. id—(identifier)
    Unique identifier for the attribute.
  2. expression—(float, string, bool, float[], string[], bool[])
    Attribute value.

Description

A new attribute can be introduced by attr keyword. As for constants, attributes are evaluated only once at the beginning of the generation process before any rule is applied.

The values of attributes can be externally changed through the Inspector or by a map. See also CGA attributes. Attributes can be annotated to control their presentation in the Inspector. Refer to Annotations.

Related

Examples

Defining an attribute with attr

attr height = 250

Lot --> extrude(height)