vw_set_lighting_device_fields
Edit fields of one or more Spotlight Lighting Devices in an open Vectorworks drawing as a single revertible step, with every value verified by read-back before you trust it.
Instructions
Change fields of one or more Lighting Devices in the live drawing, verified by reading them back, as one revertible step.
Changes the document. This is the default way to edit device data; use
vw_import_hookup for many rows from a spreadsheet export and
vw_lightwright_patch only for Lightwright round trips or when a dialog
blocks the bridge. Every selector and field name is validated first; if any
fails, nothing changes. Universe / DMX Address edits are applied through
UniverseAddress (Spotlight's source of truth), so set that field rather than
Universe or DMX Address alone. Undo exactly this call with vw_revert_last.
Returns one item per device with uuid, before, after (re-read from
Vectorworks) and not_applied for values Spotlight overrode; trust after.
GDTF fixture types cannot be assigned here: 'GDTF Fixture Name' and 'GDTF Fixture Mode' accept text but link nothing (live 2026-11-21); the user picks the GDTF in the Object Info palette.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"updates": "<updates>"
},
"name": "vw_set_lighting_device_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | One item per device: a selector plus "fields". Selector keys: "uuid" (from vw_list_lighting_devices); or "position" and "unit_number" together (unit numbers repeat per position); or "unit_number" alone when it is unique in the plot; or "channel" when unique. "fields" maps Lighting Device parameter names to new string values, for example {"position": "1E", "unit_number": "3", "fields": {"Channel": "101", "Color": "R02"}}. Addresses go in "UniverseAddress" as "universe/address" such as "2/101". | |
| document | No | Name of the document this call is meant for (as vw_list_documents shows it, with or without .vwx). If another document is active nothing changes; use vw_switch_document first. Always set it for a write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |