- attr id = expression
- id—(identifier)Unique identifier for the attribute.
- expression—(float, string, bool, float, string, bool)Attribute value.
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.
Defining an attribute with attr
attr height = 250 Lot --> extrude(height)