getrenderproperty
Reads a Drawing property by name.
Syntax
getrenderproperty(drawing: DrawingObject, property: string) -> any
Also available as
get_render_property
Parameters
| Parameter | Type | Description |
|---|---|---|
drawing | DrawingObject | Live drawing handle. |
property | string | Case-sensitive property name. |
Returns
| Type | Description |
|---|---|
any | Current property value. |
Description
This is the explicit-function form of drawing[property]. It accepts only supported properties for that primitive. Unknown properties, removed handles and invalid objects raise errors.
Example
local line = Drawing.new("Line")
print(getrenderproperty(line, "Thickness"))
line:Remove()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
