Widgets/Transformer
Object Widget
Object Widget
A "Transformer" type widget. The Object Widget creates a JavaScript object using user-defined property names and values received through input connections. This widget is useful for grouping related data, building structured outputs, or preparing data for other widgets.
Inputs
-
One input per property (DataType: Any) — The property name is used as the key in the output object. Each input port accepts any data type.
-
trigger (DataType: Anything) — If the "Trigger port" setting is enabled, the object is only output when this port is triggered. Otherwise, any property change transmits output.
Outputs
- output (DataType: JsonObj) — The constructed object, with keys/values as defined by the widget's properties.
Custom Settings
- properties — Number of properties to include in the object (up to
20). Each property creates a corresponding input port. - trigger port — If enabled, the object is only output when the trigger port is activated. If disabled, the object updates automatically when a property value changes.
- property name — Editable field shown directly in the widget to define each object key.

Example
Basic Object Creation
Create an object with two properties, name and age:
Drag the example onto the workspace to explore and experiment!
In this example:
- The Object Widget is configured with 2 properties:
"name"and"age", which creates 2 corresponding input ports - The Object Widget receives the value
"John"from a Text Widget connected to thenameinput port, and the value50from a Value Widget connected to theageinput port - The resulting object
{ name: "John", age: 50 }can be seen in the Port Inspector tool by clicking on the Object Widget's output port
Glossary
-
Port Inspector
The Port Inspector is a panel in Kemu’s Logic Mapper that shows details about a selected port. It can be enabled or disabled from the settings menu (gear icon). When visible, clicking a port will load its information, including:
- Data Type (e.g., Object, Array)
- Port Type (Source or Target)
- Last Value (latest transmitted data)
This helps you inspect values, review port behavior, and debug connections.