Syntax
setrenderproperty(object: DrawingObject, property: string, value: any)Arguments
| Name | Type | Description |
|---|---|---|
object | DrawingObject | Object, table, or drawing value to inspect or change. |
property | string | Property name to read or change. |
value | any | New value to write. |
Description
Sets a property on a drawing object through the generic render property API.
Call it with 3 parameter(s): object, property, value. The argument table explains which values are required and which ones only refine the behavior.
It does not return data. Treat the call as an action and handle errors around the call site when needed.
Example
Update a drawing property through the generic property helper.
local line = Drawing.new("Line")
setrenderproperty(line, "Thickness", 3)
setrenderproperty(line, "Visible", true)