Files
Amatsukast-ComfyUI-SBTools/examples/Variable Prompt Conditional_2.json
T
Amatsukast 845f57e490 Release v1.4.0: Conditional Variables and Enhanced Workflow System
Major Features:
- Conditional Variable System with AND/OR logic and wildcard support
- Node renaming: Variable Prompt, Variable Image Loader, Variable Builder
- Variable Builder with max_combinations and all_combinations outputs
- Auto-naming for tag_name with unique ID generation
- Duplicate detection in Variable Combiner
- Full-width character support for Japanese input

New Example Workflows:
- Variable Prompt Conditional_1: Basic conditional variables
- Variable Prompt Conditional_2: Advanced conditional logic
- Image Load from Folder: Standalone image loader
- Remove BG and Fill BG: Background removal with chroma key fill
- Updated existing workflows to use renamed nodes
- Converted workflow screenshots to WebP format

Documentation:
- Comprehensive README updates with 6 example workflows
- CHANGELOG corrections for node naming consistency
- Detailed conditional variable syntax documentation

Breaking Changes:
- Node names updated for better organization
- Prompt Compiler and Compiler Debug nodes removed (merged into Variable Builder)
2026-04-21 13:26:47 +09:00

614 lines
11 KiB
JSON

{
"id": "679dc728-50ff-443c-9e37-0cca20ffdc94",
"revision": 0,
"last_node_id": 43,
"last_link_id": 185,
"nodes": [
{
"id": 7,
"type": "PreviewAny",
"pos": [
2120,
380
],
"size": [
400,
120
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 149
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 5,
"type": "PreviewAny",
"pos": [
2120,
200
],
"size": [
400,
120
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 148
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 28,
"type": "SBTools_VariableCombiner",
"pos": [
1400,
200
],
"size": [
240,
140
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "var_list1",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 185
},
{
"name": "var_list2",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 176
},
{
"name": "var_list3",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
},
{
"name": "var_list4",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
},
{
"name": "var_list5",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
},
{
"name": "var_list6",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
147
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_VariableCombiner"
},
"widgets_values": []
},
{
"id": 37,
"type": "SBTools_VariablePrompt",
"pos": [
-360,
200
],
"size": [
400,
200
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
182
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"GENDER",
"man\nwoman",
false,
"",
""
]
},
{
"id": 42,
"type": "SBTools_VariablePrompt",
"pos": [
80,
200
],
"size": [
400,
200
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 182
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
183
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"AGE",
"young\nold",
false,
"",
""
]
},
{
"id": 6,
"type": "PreviewAny",
"pos": [
2120,
560
],
"size": [
440,
620
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 150
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 38,
"type": "SBTools_VariablePrompt",
"pos": [
520,
200
],
"size": [
400,
300
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 183
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
184
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"CLOTHING",
"casual wear\nformal\n\n[young]\nhoodie\n\n[man&&formal]\ntuxedo\n\n[woman&&formal]\nevening-dress\n\n[*]\nsportswear",
false,
"",
""
]
},
{
"id": 43,
"type": "SBTools_VariablePrompt",
"pos": [
960,
200
],
"size": [
400,
300
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 184
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
185
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"ACCESSORY",
"watch\nbracelet\n\n[young]\ncap\n\n[man&&formal]\ntie\n\n[woman&&formal]\nnecklace\n[NONE]",
false,
"with ",
""
]
},
{
"id": 41,
"type": "SBTools_VariableBuilder",
"pos": [
1680,
200
],
"size": [
400,
320
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 147
},
{
"name": "index",
"type": "INT",
"widget": {
"name": "index"
},
"link": 151
}
],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
148
]
},
{
"name": "image1",
"type": "IMAGE",
"links": null
},
{
"name": "image2",
"type": "IMAGE",
"links": null
},
{
"name": "image3",
"type": "IMAGE",
"links": null
},
{
"name": "image4",
"type": "IMAGE",
"links": null
},
{
"name": "max_combinations",
"type": "INT",
"links": [
149
]
},
{
"name": "all_combinations",
"type": "STRING",
"links": [
150
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariableBuilder"
},
"widgets_values": [
"A [AGE] [GENDER] in [CLOTHING] [ACCESSORY] [ITEM].",
0,
1044640172,
"randomize",
", "
]
},
{
"id": 39,
"type": "SBTools_VariablePrompt",
"pos": [
960,
580
],
"size": [
400,
280
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
176
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"ITEM",
"bag\nbook\nphone\n[NONE]",
true,
", holding ",
""
]
},
{
"id": 25,
"type": "PrimitiveInt",
"pos": [
1680,
580
],
"size": [
280,
100
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
151
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PrimitiveInt"
},
"widgets_values": [
0,
"increment"
]
}
],
"links": [
[
147,
28,
0,
41,
0,
"VARIABLE_LIST"
],
[
148,
41,
0,
5,
0,
"STRING"
],
[
149,
41,
5,
7,
0,
"INT"
],
[
150,
41,
6,
6,
0,
"STRING"
],
[
151,
25,
0,
41,
1,
"INT"
],
[
176,
39,
0,
28,
1,
"VARIABLE_LIST"
],
[
182,
37,
0,
42,
0,
"VARIABLE_LIST"
],
[
183,
42,
0,
38,
0,
"VARIABLE_LIST"
],
[
184,
38,
0,
43,
0,
"VARIABLE_LIST"
],
[
185,
43,
0,
28,
0,
"VARIABLE_LIST"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.626938775510204,
"offset": [
860,
313.6770833333335
]
},
"frontendVersion": "1.41.21",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}