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| Name | Type | Description |
|---|---|---|
| handle | HANDLE | |
| cellIndex | LONGINT | |
| accessoryIndex | LONGINT | |
| universalName | STRING |
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))Availability: from Vectorworks 2021