Skip to main content

Widget To String

KJNodes/text
WidgetToString

Selects 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

JSON 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

NameTypeStatusConstraintsDefault
idINTrequiredmin: 0, max: 100000, step: 10
widget_nameSTRINGrequired--
return_allBOOLEANrequired-false
any_input*optional--
node_titleSTRINGoptional--
allowed_float_decimals?INToptionalmin: 0, max: 102

Outputs

IndexNameTypeIs ListConnection Reference
0STRINGSTRINGNo["{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]
Was this page helpful?