Skip to main content

set

set sets attributes on either objects or areas.

ContextType
Inputset of objects or a set of areas
Outputthe passed in set
ParameterType
attribute namestring
valuenumber 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")`;