Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.37 KB

LDevice_GetParamReal.md

File metadata and controls

50 lines (41 loc) · 1.37 KB

LDevice_GetParamReal

Description

Get real parameter of a Lighting Device or attached Accessory by Worksheet Name. Use cell index 0 to operate on the first cell. Cell index -1 is not supported for Get. Use accessory index -2 to ignore accessory values. Use accessory index 0 to operate on the first accessory of the specified cell. Accessory index -1 is not supported for Get.

FUNCTION LDevice_GetParamReal(
				handle         : HANDLE;
				cellIndex      : LONGINT;
				accessoryIndex : LONGINT;
				universalName  : STRING): REAL;
def vs.LDevice_GetParamReal(handle, cellIndex, accessoryIndex, universalName):
    return REAL

Parameters

Name Type Description
handle HANDLE
cellIndex LONGINT
accessoryIndex LONGINT
universalName STRING

Examples

resultVal := LDevice_GetParamReal(handle, 1, 2, 'Example');
import vs

# Get real parameter of a Lighting Device or attached Accessory by Worksheet
# Name.
handle = vs.FSActLayer()  # handle to the first selected object on the active layer
cellIndex = 1
accessoryIndex = 1
universalName = 'Example'

value = vs.LDevice_GetParamReal(handle, cellIndex, accessoryIndex, universalName)
vs.Message('LDevice_GetParamReal returned: ' + str(value))

Version

Availability: from Vectorworks 2021

Category