1 Commits
Author SHA1 Message Date
AdamShuo 5a55779dfe Add a sample workflow
Add a very simple sample workflow
2025-09-24 00:59:46 +08:00
+383
View File
@@ -0,0 +1,383 @@
{
"id": "01c335ee-6de4-46d1-aadc-3e0670d236d2",
"revision": 0,
"last_node_id": 9,
"last_link_id": 10,
"nodes": [
{
"id": 2,
"type": "SwitchAny",
"pos": [
3320,
-700
],
"size": [
270,
342
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "index",
"type": "INT",
"links": [
1
]
},
{
"name": "label",
"type": "STRING",
"links": [
8,
9,
10
]
}
],
"properties": {
"aux_id": "AdamShuo/ComfyUI_Switch",
"ver": "389b2c96c94253c282c743097f1a4db7b15f447a",
"Node name for S&R": "SwitchAny"
},
"widgets_values": [
"a+b",
"a+b",
"a-b",
"a*b",
"",
"",
"",
"",
"",
"",
"",
"save_refresh"
]
},
{
"id": 3,
"type": "ImpactSwitch",
"pos": [
3650,
-480
],
"size": [
270,
142
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "select",
"type": "INT",
"widget": {
"name": "select"
},
"link": 1
},
{
"name": "input1",
"type": "STRING",
"link": 8
},
{
"name": "input2",
"type": "STRING",
"link": 9
},
{
"name": "input3",
"type": "STRING",
"link": 10
},
{
"name": "input4",
"type": "STRING",
"link": null
}
],
"outputs": [
{
"label": "STRING",
"name": "STRING",
"type": "STRING",
"links": [
6
]
},
{
"label": "标签",
"name": "selected_label",
"type": "STRING",
"links": null
},
{
"name": "selected_index",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "8.22.2",
"Node name for S&R": "ImpactSwitch"
},
"widgets_values": [
0,
false
]
},
{
"id": 5,
"type": "SimpleMath+",
"pos": [
3950,
-720
],
"size": [
270,
98
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "a",
"shape": 7,
"type": "*",
"link": 2
},
{
"name": "b",
"shape": 7,
"type": "*",
"link": 3
},
{
"name": "c",
"shape": 7,
"type": "*",
"link": null
},
{
"name": "value",
"type": "STRING",
"widget": {
"name": "value"
},
"link": 6
}
],
"outputs": [
{
"label": "整数",
"name": "INT",
"type": "INT",
"links": [
7
]
},
{
"label": "浮点",
"name": "FLOAT",
"type": "FLOAT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui_essentials",
"ver": "9d9f4bedfc9f0321c19faf71855e228c93bd0dc9",
"Node name for S&R": "SimpleMath+"
},
"widgets_values": [
""
]
},
{
"id": 6,
"type": "SimpleMathInt+",
"pos": [
3650,
-720
],
"size": [
270,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"label": "整数",
"name": "INT",
"type": "INT",
"links": [
2
]
}
],
"properties": {
"cnr_id": "comfyui_essentials",
"ver": "9d9f4bedfc9f0321c19faf71855e228c93bd0dc9",
"Node name for S&R": "SimpleMathInt+"
},
"widgets_values": [
10
]
},
{
"id": 7,
"type": "SimpleMathInt+",
"pos": [
3650,
-600
],
"size": [
270,
58
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"label": "整数",
"name": "INT",
"type": "INT",
"links": [
3
]
}
],
"properties": {
"cnr_id": "comfyui_essentials",
"ver": "9d9f4bedfc9f0321c19faf71855e228c93bd0dc9",
"Node name for S&R": "SimpleMathInt+"
},
"widgets_values": [
5
]
},
{
"id": 9,
"type": "Display Int (rgthree)",
"pos": [
4260,
-720
],
"size": [
140,
76
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"dir": 3,
"label": "输入",
"name": "input",
"type": "INT",
"link": 7
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "1.0.2509092031",
"Node name for S&R": "Display Int (rgthree)"
},
"widgets_values": [
"15"
]
}
],
"links": [
[
1,
2,
0,
3,
0,
"INT"
],
[
2,
6,
0,
5,
0,
"*"
],
[
3,
7,
0,
5,
1,
"*"
],
[
6,
3,
0,
5,
3,
"STRING"
],
[
7,
5,
0,
9,
0,
"INT"
],
[
8,
2,
1,
3,
1,
"STRING"
],
[
9,
2,
1,
3,
2,
"STRING"
],
[
10,
2,
1,
3,
3,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.2724928237261635,
"offset": [
-3243.9998672939855,
892.8399098365666
]
},
"frontendVersion": "1.25.11"
},
"version": 0.4
}