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

562 lines
9.8 KiB
JSON

{
"id": "056e9d3b-0b50-4aba-a87b-662002b81a64",
"revision": 0,
"last_node_id": 33,
"last_link_id": 105,
"nodes": [
{
"id": 6,
"type": "PreviewAny",
"pos": [
2120,
560
],
"size": [
400,
620
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 99
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 7,
"type": "PreviewAny",
"pos": [
2120,
380
],
"size": [
400,
120
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 98
}
],
"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": 5,
"mode": 0,
"inputs": [
{
"name": "var_list1",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 100
},
{
"name": "var_list2",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 101
},
{
"name": "var_list3",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 102
},
{
"name": "var_list4",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 103
},
{
"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": [
104
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "a503865524260566660f89ee3bf4f58b3c6372e2",
"Node name for S&R": "SBTools_VariableCombiner"
},
"widgets_values": []
},
{
"id": 5,
"type": "PreviewAny",
"pos": [
2120,
200
],
"size": [
400,
120
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 97
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PreviewAny"
},
"widgets_values": [
null,
null,
null
]
},
{
"id": 29,
"type": "SBTools_VariablePrompt",
"pos": [
960,
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": [
100
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"GENDER",
"man\nwoman",
false,
"",
""
]
},
{
"id": 30,
"type": "SBTools_VariablePrompt",
"pos": [
960,
460
],
"size": [
400,
200
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
101
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"AGE",
"young\nmiddle-aged\nold",
false,
"",
""
]
},
{
"id": 31,
"type": "SBTools_VariablePrompt",
"pos": [
960,
720
],
"size": [
400,
200
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
102
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"CLOTHING",
"suit\nlab coat\ncasual wear",
false,
"",
""
]
},
{
"id": 33,
"type": "SBTools_VariableBuilder",
"pos": [
1680,
200
],
"size": [
400,
320
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": 104
},
{
"name": "index",
"type": "INT",
"widget": {
"name": "index"
},
"link": 105
}
],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
97
]
},
{
"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": [
98
]
},
{
"name": "all_combinations",
"type": "STRING",
"links": [
99
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariableBuilder"
},
"widgets_values": [
"A [AGE] [GENDER] in [CLOTHING] [ACCESSORY].",
0,
1099379898,
"randomize",
", "
]
},
{
"id": 32,
"type": "SBTools_VariablePrompt",
"pos": [
960,
980
],
"size": [
400,
200
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "var_list",
"shape": 7,
"type": "VARIABLE_LIST",
"link": null
}
],
"outputs": [
{
"name": "var_list",
"type": "VARIABLE_LIST",
"links": [
103
]
}
],
"properties": {
"aux_id": "Amatsukast/ComfyUI-SBTools",
"ver": "342b973252c1ed47186386392f6395bdb32aea49",
"Node name for S&R": "SBTools_VariablePrompt"
},
"widgets_values": [
"ACCESSORY",
"glasses\nhat\n[NONE]",
true,
"with ",
""
]
},
{
"id": 25,
"type": "PrimitiveInt",
"pos": [
1680,
580
],
"size": [
280,
100
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
105
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.2",
"Node name for S&R": "PrimitiveInt"
},
"widgets_values": [
0,
"increment"
]
}
],
"links": [
[
97,
33,
0,
5,
0,
"STRING"
],
[
98,
33,
5,
7,
0,
"INT"
],
[
99,
33,
6,
6,
0,
"STRING"
],
[
100,
29,
0,
28,
0,
"VARIABLE_LIST"
],
[
101,
30,
0,
28,
1,
"VARIABLE_LIST"
],
[
102,
31,
0,
28,
2,
"VARIABLE_LIST"
],
[
103,
32,
0,
28,
3,
"VARIABLE_LIST"
],
[
104,
28,
0,
33,
0,
"VARIABLE_LIST"
],
[
105,
25,
0,
33,
1,
"INT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9026796116504854,
"offset": [
-378.71966959215274,
11.666666666666742
]
},
"frontendVersion": "1.41.21",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}