Drawing

setrenderproperty

Sets a property on a drawing object through the generic render property API.

Syntax

setrenderproperty(object: DrawingObject, property: string, value: any)

Arguments

NameTypeDescription
objectDrawingObjectObject, table, or drawing value to inspect or change.
propertystringProperty name to read or change.
valueanyNew 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)