SetObjectData(type, id, key$, value)
value
can be any kind of Hollywood data value: It can be
a string, a table, a number, or even a function. Everything is possible.
If the key specified in key$
is already used inside the object, the old
data will be replaced with the new one.
To access the data later, you can use the GetObjectData() function.
See Object types for a list of all object types.
SetObjectData(#BRUSH, 1, "brushgroup", "A") d$ = GetObjectData(#BRUSH, 1, "brushgroup")The code above stores the value "A" in brush 1 under the key "brushgroup" and then retrieves it again.
d$
will be set to "A".