Files
2026-05-10 04:02:15 +02:00

464 lines
9.2 KiB
JSON

{
"id": "fa20807e-0659-440a-a5dc-d4668e6cf29d",
"revision": 0,
"last_node_id": 12,
"last_link_id": 6,
"nodes": [
{
"id": 4,
"type": "ArtemKo7vComplexPromptSetVariable",
"pos": [
-2885.9129147567896,
66.08709678324423
],
"size": [
233.1587890625,
228
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "vars",
"shape": 7,
"type": "ArtemKo7vComplexPromptVars",
"link": null
}
],
"outputs": [
{
"name": "vars",
"type": "ArtemKo7vComplexPromptVars",
"links": [
1
]
},
{
"name": "wasSet",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"aux_id": "ArtemKo7v/ComfyUI-Complex-Prompt",
"ver": "f45d744678bf533a1e1e1bfe0a26e5569d24359b",
"Node name for S&R": "ArtemKo7vComplexPromptSetVariable"
},
"widgets_values": [
"toy",
"cube",
"",
373753896969863,
"randomize",
false
]
},
{
"id": 1,
"type": "ArtemKo7vComplexPromptSetVariable",
"pos": [
-2610.6007386932356,
67.787786250899
],
"size": [
233.1587890625,
228
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "vars",
"shape": 7,
"type": "ArtemKo7vComplexPromptVars",
"link": 1
}
],
"outputs": [
{
"name": "vars",
"type": "ArtemKo7vComplexPromptVars",
"links": [
2
]
},
{
"name": "wasSet",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"aux_id": "ArtemKo7v/ComfyUI-Complex-Prompt",
"ver": "f45d744678bf533a1e1e1bfe0a26e5569d24359b",
"Node name for S&R": "ArtemKo7vComplexPromptSetVariable"
},
"widgets_values": [
"color",
"{red|blue|yellow}",
"",
740514718829390,
"randomize",
false
]
},
{
"id": 3,
"type": "ArtemKo7vComplexPromptSetVariable",
"pos": [
-2291.785115291399,
68.32065993912917
],
"size": [
233.1587890625,
228
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "vars",
"shape": 7,
"type": "ArtemKo7vComplexPromptVars",
"link": 2
}
],
"outputs": [
{
"name": "vars",
"type": "ArtemKo7vComplexPromptVars",
"links": [
4
]
},
{
"name": "wasSet",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"aux_id": "ArtemKo7v/ComfyUI-Complex-Prompt",
"ver": "f45d744678bf533a1e1e1bfe0a26e5569d24359b",
"Node name for S&R": "ArtemKo7vComplexPromptSetVariable"
},
"widgets_values": [
"toy",
"ball",
"$color == \"red\"",
418589888261161,
"randomize",
false
]
},
{
"id": 6,
"type": "Note",
"pos": [
-2292.097401639387,
-90.61462894908651
],
"size": [
225.8629671041224,
88
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Conditional Set Variable:\nif $color == \"red\", overwrite $toy with \"ball\".\nOtherwise keep the previous $toy value."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 8,
"type": "ArtemKo7vComplexPromptSetVariableByChoice",
"pos": [
-2013.4479410243855,
68.69606150136237
],
"size": [
304.5123046875,
228
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "vars",
"shape": 7,
"type": "ArtemKo7vComplexPromptVars",
"link": 4
}
],
"outputs": [
{
"name": "vars",
"type": "ArtemKo7vComplexPromptVars",
"links": [
5
]
},
{
"name": "wasSet",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"aux_id": "ArtemKo7v/ComfyUI-Complex-Prompt",
"ver": "f45d744678bf533a1e1e1bfe0a26e5569d24359b",
"Node name for S&R": "ArtemKo7vComplexPromptSetVariableByChoice"
},
"widgets_values": [
"action",
"toy",
"\"cube\": \"{looking at|holding}\",\n\"ball\": \"playing with\"",
644960806461257,
"randomize",
false
]
},
{
"id": 9,
"type": "Note",
"pos": [
-2011.3372489503809,
-144.35508212940044
],
"size": [
321.5646876139192,
138.03366061178573
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Set Variable By Choice:\nread $toy and choose a value for $action.\n\n\"cube\" -> random dynamic prompt: {looking at|holding}\n\"ball\" -> playing with"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 10,
"type": "ArtemKo7vComplexPrompt",
"pos": [
-1649.6718365718948,
72.00770594107114
],
"size": [
232.4827633086311,
191.0657473764603
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "vars",
"shape": 7,
"type": "ArtemKo7vComplexPromptVars",
"link": 5
}
],
"outputs": [
{
"name": "string",
"type": "STRING",
"links": [
6
]
}
],
"properties": {
"aux_id": "ArtemKo7v/ComfyUI-Complex-Prompt",
"ver": "f45d744678bf533a1e1e1bfe0a26e5569d24359b",
"Node name for S&R": "ArtemKo7vComplexPrompt"
},
"widgets_values": [
"A boy is $action the $color $toy.",
235276424203169,
"randomize"
]
},
{
"id": 11,
"type": "Note",
"pos": [
-1647.9367850473257,
-97.08687118242108
],
"size": [
212.1570113748287,
88
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Complex Prompt builds the final string.\nIt expands dynamic prompt syntax first, then replaces $action, $color, and $toy."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 12,
"type": "PreviewAny",
"pos": [
-1369.1827784930879,
65.12589111475374
],
"size": [
210,
118.86456663721157
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 6
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
false
]
},
{
"id": 5,
"type": "Note",
"pos": [
-2883.077907566941,
-93.86344808491907
],
"size": [
210,
88
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Set Variable:\n$toy = \"cube\""
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 2,
"type": "Note",
"pos": [
-2611.522178629187,
-92.06123301926952
],
"size": [
264.95032233210895,
88
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Set Variable with dynamic prompt syntax:\n$color = one of red, blue, or yellow"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
4,
0,
1,
0,
"ArtemKo7vComplexPromptVars"
],
[
2,
1,
0,
3,
0,
"ArtemKo7vComplexPromptVars"
],
[
4,
3,
0,
8,
0,
"ArtemKo7vComplexPromptVars"
],
[
5,
8,
0,
10,
0,
"ArtemKo7vComplexPromptVars"
],
[
6,
10,
0,
12,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9849732675807771,
"offset": [
3042.4671526214215,
452.2883577360376
]
},
"frontendVersion": "1.42.15",
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}