Files
IxMxAMAR-ComfyUI-Utility-Me…/workflows/53_workflow_state_machine.json
T
IxMxAMAR 27c91df4f3 templates: regenerate with correct geometry, control_after_generate, no ShowText
- Multiline-aware node heights (prompt fields no longer overlap next node)
- Auto-inject control_after_generate widget value after seed (fixes value shift)
- Strip ShowText nodes from output (was incorrectly registered as comfy-core, actually third-party)
- Bumped layout spacing for visual clarity
2026-05-30 20:44:22 +05:30

419 lines
7.5 KiB
JSON

{
"last_node_id": 3,
"last_link_id": 1,
"nodes": [
{
"id": 1,
"type": "UtilMegaPack_Convenience",
"pos": [
60,
60
],
"size": [
320,
756
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "value",
"type": "*",
"link": null
},
{
"name": "value_0",
"type": "*",
"link": null
},
{
"name": "value_1",
"type": "*",
"link": null
},
{
"name": "value_2",
"type": "*",
"link": null
},
{
"name": "value_3",
"type": "*",
"link": null
},
{
"name": "value_4",
"type": "*",
"link": null
},
{
"name": "image_a",
"type": "IMAGE",
"link": null
},
{
"name": "image_b",
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "out_1",
"type": "*",
"links": [
1
],
"slot_index": 0
},
{
"name": "out_2",
"type": "*",
"links": [],
"slot_index": 1
},
{
"name": "out_3",
"type": "*",
"links": [],
"slot_index": 2
},
{
"name": "out_4",
"type": "*",
"links": [],
"slot_index": 3
},
{
"name": "out_5",
"type": "*",
"links": [],
"slot_index": 4
}
],
"properties": {
"recipe_id": "counter",
"Node name for S&R": "UtilMegaPack_Convenience"
},
"widgets_values": [
"counter_inc",
"(use pack default)",
0,
true,
"global_run_count",
1,
false,
"DEBUG",
"[\"a\",\"b\",\"c\"]",
"default",
"{}",
"",
"",
"",
"",
"",
""
]
},
{
"id": 2,
"type": "UtilMegaPack_Convenience",
"pos": [
460,
60
],
"size": [
320,
756
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "value",
"type": "*",
"link": 1
},
{
"name": "value_0",
"type": "*",
"link": null
},
{
"name": "value_1",
"type": "*",
"link": null
},
{
"name": "value_2",
"type": "*",
"link": null
},
{
"name": "value_3",
"type": "*",
"link": null
},
{
"name": "value_4",
"type": "*",
"link": null
},
{
"name": "image_a",
"type": "IMAGE",
"link": null
},
{
"name": "image_b",
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "out_1",
"type": "*",
"links": [],
"slot_index": 0
},
{
"name": "out_2",
"type": "*",
"links": [],
"slot_index": 1
},
{
"name": "out_3",
"type": "*",
"links": [],
"slot_index": 2
},
{
"name": "out_4",
"type": "*",
"links": [],
"slot_index": 3
},
{
"name": "out_5",
"type": "*",
"links": [],
"slot_index": 4
}
],
"properties": {
"recipe_id": "gate",
"Node name for S&R": "UtilMegaPack_Convenience"
},
"widgets_values": [
"gate_passthrough",
"(use pack default)",
0,
true,
"default",
1,
false,
"DEBUG",
"[\"a\",\"b\",\"c\"]",
"default",
"{}",
"",
"",
"",
"",
"",
""
]
},
{
"id": 3,
"type": "UtilMegaPack_Convenience",
"pos": [
860,
60
],
"size": [
320,
756
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "value",
"type": "*",
"link": null
},
{
"name": "value_0",
"type": "*",
"link": null
},
{
"name": "value_1",
"type": "*",
"link": null
},
{
"name": "value_2",
"type": "*",
"link": null
},
{
"name": "value_3",
"type": "*",
"link": null
},
{
"name": "value_4",
"type": "*",
"link": null
},
{
"name": "image_a",
"type": "IMAGE",
"link": null
},
{
"name": "image_b",
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "out_1",
"type": "*",
"links": [],
"slot_index": 0
},
{
"name": "out_2",
"type": "*",
"links": [],
"slot_index": 1
},
{
"name": "out_3",
"type": "*",
"links": [],
"slot_index": 2
},
{
"name": "out_4",
"type": "*",
"links": [],
"slot_index": 3
},
{
"name": "out_5",
"type": "*",
"links": [],
"slot_index": 4
}
],
"properties": {
"recipe_id": "switch",
"Node name for S&R": "UtilMegaPack_Convenience"
},
"widgets_values": [
"switch_any",
"(use pack default)",
0,
true,
"default",
1,
false,
"DEBUG",
"[\"a\",\"b\",\"c\"]",
"default",
"{}",
"",
"Branch A output \u2014 counter was even",
"Branch B output \u2014 counter was odd",
"Branch C output \u2014 fallback",
"",
""
]
}
],
"links": [
[
1,
1,
0,
2,
0,
"*"
]
],
"groups": [
{
"title": "Counter",
"bounding": [
35,
-1,
370,
842
],
"color": "#3F789E",
"font_size": 24,
"locked": false
},
{
"title": "Gate",
"bounding": [
435,
-1,
370,
842
],
"color": "#3F789E",
"font_size": 24,
"locked": false
},
{
"title": "Switch",
"bounding": [
835,
-1,
370,
842
],
"color": "#3F789E",
"font_size": 24,
"locked": false
},
{
"title": "Output",
"bounding": [
1235,
-1,
370,
498
],
"color": "#3F789E",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {
"ds": {
"scale": 1.0,
"offset": [
0,
0
]
},
"description": "Demonstrate MegaPack's stateful primitives: counter_inc tracks run count, gate_passthrough conditionally forwards a value, and switch_any selects between branches.",
"title": "MegaPack \u2014 Workflow State Machine",
"tier": 2,
"pack": "ComfyUI-Utility-MegaPack"
},
"version": 0.4
}