Set boolean parameter of a Lighting Device or attached Accessory by Worksheet Name. Use cell index 0 to operate on the first cell. Use cell index -1 to set value for all the cells. Use accessory index -2 to ignore accessory values. Use accessory index 0 to operate on the first accessory of the specified cell. Use accessory index -1 to set value for all the accessories on the specified cell.
PROCEDURE LDevice_SetParamBool(
handle : HANDLE;
cellIndex : LONGINT;
accessoryIndex : LONGINT;
universalName : STRING;
newValue : BOOLEAN);def vs.LDevice_SetParamBool(handle, cellIndex, accessoryIndex, universalName, newValue):
return None| Name | Type | Description |
|---|---|---|
| handle | HANDLE | |
| cellIndex | LONGINT | |
| accessoryIndex | LONGINT | |
| universalName | STRING | |
| newValue | BOOLEAN |
LDevice_SetParamBool(handle, 1, 2, 'Example', TRUE);import vs
# Set boolean 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'
newValue = True
vs.LDevice_SetParamBool(handle, cellIndex, accessoryIndex, universalName, newValue)Availability: from Vectorworks 2021