Widget To String
WidgetToStringSelects a node and it's specified widget and outputs the value as a string. If no node id or title is provided it will use the 'any_input' link and use that node. To see node id's, enable node id display from Manager badge menu. Alternatively you can search with the node title. Node titles ONLY exist if they are manually edited! The 'any_input' is required for making sure the node you want the value from exists in the workflow.
Example
{
"class_type": "WidgetToString",
"inputs": {
"id": 0,
"widget_name": "",
"return_all": false
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
id | INT | required | min: 0, max: 100000, step: 1 | 0 |
widget_name | STRING | required | - | - |
return_all | BOOLEAN | required | - | false |
any_input | * | optional | - | - |
node_title | STRING | optional | - | - |
allowed_float_decimals? | INT | optional | min: 0, max: 10 | 2 |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | STRING | STRING | No | ["{node_id}", 0] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this WidgetToString node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
STRING (STRING):["5", 0]