set
set
sets attributes on either objects or areas.
Context | Type |
---|---|
Input | set of objects or a set of areas |
Output | the passed in set |
Parameter | Type |
---|---|
attribute name | string |
value | number or string |
Examples
Set the color attribute of all plants (objects with type attribute set to plant) to red:
when
object(type="plant")
then
set("color", "red")`;