Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.39 KB

LDevice_GetParamLong.md

File metadata and controls

50 lines (41 loc) · 1.39 KB

LDevice_GetParamLong

Description

Get long integer 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_GetParamLong(
				handle         : HANDLE;
				cellIndex      : LONGINT;
				accessoryIndex : LONGINT;
				universalName  : STRING): LONGINT;
def vs.LDevice_GetParamLong(handle, cellIndex, accessoryIndex, universalName):
    return LONGINT

Parameters

Name Type Description
handle HANDLE
cellIndex LONGINT
accessoryIndex LONGINT
universalName STRING

Examples

resultN := LDevice_GetParamLong(handle, 1, 2, 'Example');
import vs

# Get long integer 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'

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

Version

Availability: from Vectorworks 2021

Category