Essential
Variable Manipulator
No production build published yet.
$50.00
MSRP
Description
Variable Manipulator watches variables on Director devices and republishes their values as VM_STRING, VM_NUMBER, and VM_BOOL — with real math Control4's own programming, and comparable third-party drivers, don't offer.
An Operation property combines the watched value with a second watched variable (add, subtract, multiply, divide, min, max, average, or absolute difference), with Scale, Offset, Clamp Min/Max, and Decimal Places to calibrate and bound the result.
A Formula property goes further: a real, sandboxed Lua expression that can reference any variable on any device in the project using a simple {deviceId.VarName} marker — trig, logarithms, rounding, and standard math/string functions all included. A visual Settings tab (Formula Builder) makes this approachable without memorizing device IDs: browse devices and variables, insert markers with a click, and validate a formula live before saving it. Need more than one calculation? Three additional formula slots let a single driver instance replace several — each with its own independent formula and its own dealer-named output variable.
A "List Available Variables" action produces a copy-paste-ready directory of every variable in the project, sorted by device, so building a formula never requires already knowing an ID or exact variable name.
Optionally, a Lua pattern can run against the primary watched value; each capture group gets its own "Pattern Capture N" variable, and a match fires a "Pattern Found" event.
A bound keypad button lights solid while held, for simple visual confirmation that the driver received the press.