Files
Amatsukast-ComfyUI-SBTools/examples/Variable Prompt Conditional_1.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

510 lines
8.9 KiB
JSON

{
"id": "d942b58a-6b3f-40cf-9d57-7f30c3806fc1",
"revision": 0,
"last_node_id": 41,
"last_link_id": 179,
"nodes": [
{
"id": 7,
"type": "PreviewAny",
"pos": [
2120,
380
],
"size": [
400,
120
],
"flags": {},
"order": 7,
"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": 6,
"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": 6,
"type": "PreviewAny",
"pos": [
2120,
560
],
"size": [
400,
240
],
"flags": {},
"order": 8,
"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": 28,
"type": "SBTools_VariableCombiner",
"pos": [
1400,
200
],
"size": [
240,
140
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "var_list1",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 175
},
{
"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": [
520,
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": [
174
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"GENDER",
"man\nwoman",
false,
"",
""
]
},
{
"id": 38,
"type": "SBTools_VariablePrompt",
"pos": [
960,
200
],
"size": [
400,
280
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 174
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
175
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"CLOTHING",
"suit\ncasual wear\nsportswear\n\n[man]\ntuxedo\n\n[woman]\ndress\n",
false,
"",
""
]
},
{
"id": 41,
"type": "SBTools_VariableBuilder",
"pos": [
1680,
200
],
"size": [
400,
320
],
"flags": {},
"order": 5,
"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": [
"",
0,
3405149679,
"randomize",
", "
]
},
{
"id": 39,
"type": "SBTools_VariablePrompt",
"pos": [
960,
560
],
"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": [
"",
"watch\nglasses\n[NONE]",
true,
"",
""
]
},
{
"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"
],
[
174,
37,
0,
38,
0,
"VARIABLE_LIST"
],
[
175,
38,
0,
28,
0,
"VARIABLE_LIST"
],
[
176,
39,
0,
28,
1,
"VARIABLE_LIST"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9124752475247522,
"offset": [
-173.33333333333326,
174.29513888888903
]
},
"frontendVersion": "1.41.21",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}