ReferenceDrawing

getrenderproperty

Reads a Drawing property by name.

Syntax

getrenderproperty(drawing: DrawingObject, property: string) -> any

Also available as

get_render_property

Parameters

ParameterTypeDescription
drawingDrawingObjectLive drawing handle.
propertystringCase-sensitive property name.

Returns

TypeDescription
anyCurrent 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.