とりあえずワークフロー配布
上の画像をDLしてComfyuiの画面にドラッグして入れるか、下のJsonをコピーしてComfyuiの画面上に貼り付けてください。(右のボタンで全コピーできます)
{
"last_node_id": 221,
"last_link_id": 282,
"nodes": [
{
"id": 169,
"type": "Note",
"pos": {
"0": -1087,
"1": -74
},
"size": {
"0": 357.7489318847656,
"1": 137.30465698242188
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"safe\t General\nsensitive\t Sensitive\nnsfw\t Questionable\nexplicit, nsfw\t Explicit"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 159,
"type": "Anything Everywhere?",
"pos": {
"0": -253,
"1": 411
},
"size": {
"0": 210,
"1": 148
},
"flags": {
"collapsed": true
},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "STRING",
"type": "*",
"link": 157,
"color_on": ""
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Anything Everywhere?",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
".*",
"negative",
".*",
"score_6, score_5, score_4, source_cartoon,, bad anatomy,monochrome,blurry, lowres,watermark,3d,ui,text,muscular"
]
},
{
"id": 160,
"type": "Anything Everywhere?",
"pos": {
"0": -260,
"1": 32
},
"size": {
"0": 210,
"1": 148
},
"flags": {
"collapsed": true
},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "STRING",
"type": "*",
"link": 158,
"color_on": ""
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Anything Everywhere?",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
".*",
"positive",
".*",
"rating_safe, score_9, score_8_up, score_7_up, score_6_up, source_anime, 1girl"
]
},
{
"id": 70,
"type": "Text Concatenate",
"pos": {
"0": -283,
"1": 83
},
"size": {
"0": 210,
"1": 142
},
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "text_a",
"type": "STRING",
"link": 225,
"widget": {
"name": "text_a"
}
},
{
"name": "text_b",
"type": "STRING",
"link": 244,
"widget": {
"name": "text_b"
}
},
{
"name": "text_c",
"type": "STRING",
"link": null,
"widget": {
"name": "text_c"
}
},
{
"name": "text_d",
"type": "STRING",
"link": null,
"widget": {
"name": "text_d"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
158,
188
],
"slot_index": 0,
"shape": 3
}
],
"title": "PP-Concat",
"properties": {
"Node name for S&R": "Text Concatenate"
},
"widgets_values": [
", ",
"true",
"",
"",
"",
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 195,
"type": "GODMT_Unpack",
"pos": {
"0": -469,
"1": 22
},
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "PACK",
"type": "PACK",
"link": 259
}
],
"outputs": [
{
"name": "value_1",
"type": "STRING",
"links": [
225
],
"slot_index": 0,
"shape": 3
},
{
"name": "value_2",
"type": "STRING",
"links": [
226
],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "GODMT_Unpack"
},
"widgets_values": []
},
{
"id": 99,
"type": "PromptComposerMerge",
"pos": {
"0": -285,
"1": 316
},
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "text_a",
"type": "STRING",
"link": 226,
"widget": {
"name": "text_a"
}
},
{
"name": "text_b",
"type": "STRING",
"link": 243,
"widget": {
"name": "text_b"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
88,
157
],
"slot_index": 0,
"shape": 3
}
],
"title": "NP-Concat",
"properties": {
"Node name for S&R": "PromptComposerMerge"
},
"widgets_values": [
"",
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 185,
"type": "Anything Everywhere?",
"pos": {
"0": 480,
"1": 0
},
"size": {
"0": 210,
"1": 148
},
"flags": {
"collapsed": true
},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "LIST",
"type": "*",
"link": 232,
"color_on": ""
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Anything Everywhere?",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
"GODMT_BatchGetByIndex",
"LIST",
".*",
"['_Pony\\\\mizuiropony_v12.safetensors', 'Pony\\\\ponyStandardVAE_v1.safetensors', -2, 'None', 0.41000000000000003, 0.434, '768 x 1024', 512, 512, '', '', 1]"
]
},
{
"id": 188,
"type": "GODMT_BatchGetByIndex",
"pos": {
"0": -2213.232177734375,
"1": -82.94296264648438
},
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "LIST",
"type": "LIST",
"link": null
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": [
214
],
"slot_index": 0,
"shape": 3
}
],
"title": "GODMT_BatchGetByIndex",
"properties": {
"Node name for S&R": "GODMT_BatchGetByIndex"
},
"widgets_values": [
0
]
},
{
"id": 48,
"type": "ShowText|pysssss",
"pos": {
"0": -289,
"1": 508
},
"size": {
"0": 351.5470886230469,
"1": 208.06182861328125
},
"flags": {},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 188,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"title": "PP",
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"rating_safe, score_9, score_8_up, score_7_up, score_6_up, source_anime, 1girl"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 93,
"type": "PromptComposerTextSingle",
"pos": {
"0": -1078,
"1": 114
},
"size": {
"0": 338.6565856933594,
"1": 130.6614990234375
},
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "text_in_opt",
"type": "STRING",
"link": 174,
"widget": {
"name": "text_in_opt"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
175
],
"slot_index": 0,
"shape": 3
}
],
"title": "AnimaginPP",
"properties": {
"Node name for S&R": "PromptComposerTextSingle"
},
"widgets_values": [
"masterpiece,best quality,newest",
1,
true,
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 200,
"type": "ConvertAny2Int",
"pos": {
"0": -2237.980712890625,
"1": 417.0000305175781
},
"size": {
"0": 140,
"1": 26
},
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "input1",
"type": "*",
"link": 239
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
240
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ConvertAny2Int"
},
"widgets_values": []
},
{
"id": 166,
"type": "GODMT_Pack",
"pos": {
"0": -1263,
"1": 297
},
"size": {
"0": 140,
"1": 66
},
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "value_1",
"type": "STRING",
"link": 167
},
{
"name": "value_2",
"type": "STRING",
"link": 168
},
{
"name": "value_3",
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "PACK",
"type": "DICT",
"links": [
256
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GODMT_Pack"
},
"widgets_values": []
},
{
"id": 172,
"type": "GODMT_Pack",
"pos": {
"0": -861,
"1": 294
},
"size": {
"0": 140,
"1": 66
},
"flags": {},
"order": 39,
"mode": 0,
"inputs": [
{
"name": "value_1",
"type": "STRING",
"link": 175
},
{
"name": "value_2",
"type": "STRING",
"link": 176
},
{
"name": "value_3",
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "PACK",
"type": "DICT",
"links": [
257
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GODMT_Pack"
},
"widgets_values": []
},
{
"id": 164,
"type": "D2 Multi Output",
"pos": {
"0": -1483,
"1": 376
},
"size": {
"0": 210,
"1": 156.46334838867188
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LIST",
"type": "LIST",
"links": [
245
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "D2 Multi Output"
},
"widgets_values": [
"STRING",
"rating_safe\nrating_questionable\nrating_explicit",
0
]
},
{
"id": 101,
"type": "PromptComposerTextSingle",
"pos": {
"0": -1471,
"1": 590
},
"size": {
"0": 299.587646484375,
"1": 124
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "text_in_opt",
"type": "STRING",
"link": 166,
"widget": {
"name": "text_in_opt"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
168
],
"slot_index": 0,
"shape": 3
}
],
"title": "PonyNegative",
"properties": {
"Node name for S&R": "PromptComposerTextSingle"
},
"widgets_values": [
"score_6, score_5, score_4, source_cartoon,",
1,
true,
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 91,
"type": "PromptComposerTextSingle",
"pos": {
"0": -1087,
"1": 593
},
"size": {
"0": 313.4131774902344,
"1": 124
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "text_in_opt",
"type": "STRING",
"link": 81,
"widget": {
"name": "text_in_opt"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
176
],
"slot_index": 0,
"shape": 3
}
],
"title": "AnimaginNegative",
"properties": {
"Node name for S&R": "PromptComposerTextSingle"
},
"widgets_values": [
"worst quality,low quality,normal quality,oldest,early,mid,",
1,
false,
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 203,
"type": "Text Multiline",
"pos": {
"0": -692,
"1": 127
},
"size": {
"0": 355.7070007324219,
"1": 213.05862426757812
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
244
],
"slot_index": 0,
"shape": 3
}
],
"title": "共通PP",
"properties": {
"Node name for S&R": "Text Multiline"
},
"widgets_values": [
"1girl"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 167,
"type": "easy pipeEditPrompt",
"pos": {
"0": 490,
"1": 50
},
"size": {
"0": 210,
"1": 74
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"link": 170
},
{
"name": "positive",
"type": "STRING",
"link": null,
"widget": {
"name": "positive"
}
},
{
"name": "negative",
"type": "STRING",
"link": null,
"widget": {
"name": "negative"
}
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": [
246
],
"slot_index": 0,
"shape": 3
}
],
"title": "easy pipeEditPrompt",
"properties": {
"Node name for S&R": "easy pipeEditPrompt"
},
"widgets_values": [
"",
""
]
},
{
"id": 168,
"type": "GODMT_GetWidgetsValues",
"pos": {
"0": 290,
"1": 0
},
"size": {
"0": 229.60562133789062,
"1": 117.34190368652344
},
"flags": {
"collapsed": true
},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "ANY",
"type": "*",
"link": 172
}
],
"outputs": [
{
"name": "LIST",
"type": "LIST",
"links": [
232
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GODMT_GetWidgetsValues"
},
"widgets_values": [
"['_Pony\\\\mizuiropony_v12.safetensors', 'Pony\\\\ponyStandardVAE_v1.safetensors', -2, 'None', 0.41000000000000003, 0.434, '768 x 1024', 512, 512, '', '', 1]"
]
},
{
"id": 19,
"type": "easy preSampling",
"pos": {
"0": 490,
"1": 170
},
"size": {
"0": 210,
"1": 262
},
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"link": 246
},
{
"name": "image_to_latent",
"type": "IMAGE",
"link": null
},
{
"name": "latent",
"type": "LATENT",
"link": null
},
{
"name": "seed",
"type": "INT",
"link": null,
"widget": {
"name": "seed"
}
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": [
134
],
"slot_index": 0,
"shape": 3
}
],
"title": "easy preSampling",
"properties": {
"Node name for S&R": "easy preSampling"
},
"widgets_values": [
20,
7,
"euler_ancestral",
"karras",
1,
1059205714725727,
"randomize"
]
},
{
"id": 184,
"type": "GODMT_BatchGetByIndex",
"pos": {
"0": 1687.33837890625,
"1": 369.0155334472656
},
"size": {
"0": 210,
"1": 58
},
"flags": {
"collapsed": false
},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "LIST",
"type": "LIST",
"link": null
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": [
236
],
"slot_index": 0,
"shape": 3
}
],
"title": "GODMT_BatchGetByIndex",
"properties": {
"Node name for S&R": "GODMT_BatchGetByIndex"
},
"widgets_values": [
0
]
},
{
"id": 198,
"type": "Text Find and Replace",
"pos": {
"0": 1905.33837890625,
"1": 344.0155334472656
},
"size": {
"0": 245.1999969482422,
"1": 142
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 236,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "result_text",
"type": "STRING",
"links": [
238
],
"slot_index": 0,
"shape": 3
},
{
"name": "replacement_count_number",
"type": "NUMBER",
"links": null,
"shape": 3
},
{
"name": "replacement_count_float",
"type": "FLOAT",
"links": null,
"shape": 3
},
{
"name": "replacement_count_int",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Text Find and Replace"
},
"widgets_values": [
"",
"^.+[/\\\\](.+)\\.[^.]+$",
"\\1"
]
},
{
"id": 100,
"type": "Note",
"pos": {
"0": -2222,
"1": 526
},
"size": {
"0": 235.8476104736328,
"1": 159.40951538085938
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Eagleのフォルダ仕分け用はIndex出力\nプロンプトの切り分けはText出力ー>Int変換"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 46,
"type": "Power Prompt - Simple (rgthree)",
"pos": {
"0": -1390,
"1": 823
},
"size": {
"0": 478.4605712890625,
"1": 145.72390747070312
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "opt_clip",
"type": "CLIP",
"link": null,
"dir": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": null,
"shape": 3,
"dir": 4,
"disabled": true,
"color_on": "#666665",
"color_off": "#666665"
},
{
"name": "TEXT",
"type": "STRING",
"links": [
81,
166
],
"slot_index": 1,
"shape": 3,
"dir": 4,
"color_off": "#7F7",
"color_on": "#7F7"
}
],
"properties": {
"Node name for S&R": "Power Prompt - Simple (rgthree)",
"combos_filter": ""
},
"widgets_values": [
"",
"CHOOSE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 92,
"type": "PromptComposerTextSingle",
"pos": {
"0": -1485,
"1": 93
},
"size": {
"0": 352.7479553222656,
"1": 140.05397033691406
},
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "text_in_opt",
"type": "STRING",
"link": 165,
"widget": {
"name": "text_in_opt"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
167
],
"slot_index": 0,
"shape": 3
}
],
"title": "PonyPP",
"properties": {
"Node name for S&R": "PromptComposerTextSingle"
},
"widgets_values": [
"score_9, score_8_up, score_7_up, score_6_up, source_anime",
1,
true,
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 165,
"type": "GODMT_BatchGetByIndex",
"pos": {
"0": -1483,
"1": 274
},
"size": {
"0": 210,
"1": 58
},
"flags": {
"collapsed": false
},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "LIST",
"type": "LIST",
"link": 245
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": [
165
],
"slot_index": 0,
"shape": 3
}
],
"title": "GODMT_BatchGetByIndex",
"properties": {
"Node name for S&R": "GODMT_BatchGetByIndex"
},
"widgets_values": [
0
]
},
{
"id": 170,
"type": "GODMT_BatchGetByIndex",
"pos": {
"0": -1092,
"1": 281
},
"size": {
"0": 210,
"1": 58
},
"flags": {
"collapsed": false
},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "LIST",
"type": "LIST",
"link": 173
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": [
174
],
"slot_index": 0,
"shape": 3
}
],
"title": "GODMT_BatchGetByIndex",
"properties": {
"Node name for S&R": "GODMT_BatchGetByIndex"
},
"widgets_values": [
0
]
},
{
"id": 210,
"type": "Power Prompt - Simple (rgthree)",
"pos": {
"0": -1883,
"1": 628
},
"size": {
"0": 349.4217529296875,
"1": 137.95150756835938
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "opt_clip",
"type": "CLIP",
"link": null,
"dir": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": null,
"shape": 3,
"dir": 4,
"disabled": true,
"color_on": "#666665",
"color_off": "#666665"
},
{
"name": "TEXT",
"type": "STRING",
"links": [
254
],
"slot_index": 1,
"shape": 3,
"dir": 4,
"color_off": "#7F7",
"color_on": "#7F7"
}
],
"properties": {
"Node name for S&R": "Power Prompt - Simple (rgthree)",
"combos_filter": ""
},
"widgets_values": [
"embedding:SD15\\EasyNegativeV2",
"CHOOSE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 206,
"type": "PromptComposerTextSingle",
"pos": {
"0": -1887,
"1": 390
},
"size": {
"0": 364.326904296875,
"1": 201.73007202148438
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "text_in_opt",
"type": "STRING",
"link": 254,
"widget": {
"name": "text_in_opt"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
253
],
"slot_index": 0,
"shape": 3
}
],
"title": "PonyNegative",
"properties": {
"Node name for S&R": "PromptComposerTextSingle"
},
"widgets_values": [
"worst quality,(low quality:1.5),(bad anatomy:1.3),(greyscale:1.3),(monochrome:1.2),(text,ui)",
1,
true,
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 212,
"type": "Power Prompt (rgthree)",
"pos": {
"0": -1900,
"1": 115
},
"size": {
"0": 256.9171142578125,
"1": 221.34384155273438
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "opt_model",
"type": "MODEL",
"link": null,
"dir": 3
},
{
"name": "opt_clip",
"type": "CLIP",
"link": null,
"dir": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": null,
"shape": 3,
"dir": 4,
"disabled": true,
"color_on": "#666665",
"color_off": "#666665"
},
{
"name": "MODEL",
"type": "MODEL",
"links": null,
"shape": 3,
"dir": 4,
"disabled": true,
"color_on": "#666665",
"color_off": "#666665"
},
{
"name": "CLIP",
"type": "CLIP",
"links": null,
"shape": 3,
"dir": 4,
"disabled": true,
"color_on": "#666665",
"color_off": "#666665"
},
{
"name": "TEXT",
"type": "STRING",
"links": [
255
],
"slot_index": 3,
"shape": 3,
"dir": 4,
"color_off": "#7F7",
"color_on": "#7F7"
}
],
"properties": {
"Node name for S&R": "Power Prompt (rgthree)",
"combos_filter": ""
},
"widgets_values": [
"<lora:SD15\\style\\animeLineartStyle_v20Offset:0.3>",
"CHOOSE",
"CHOOSE"
]
},
{
"id": 209,
"type": "GODMT_Pack",
"pos": {
"0": -1666.39111328125,
"1": 121.95648193359375
},
"size": {
"0": 140,
"1": 66
},
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "value_1",
"type": "STRING",
"link": 252
},
{
"name": "value_2",
"type": "STRING",
"link": 253
},
{
"name": "value_3",
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "PACK",
"type": "DICT",
"links": [
258
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GODMT_Pack"
},
"widgets_values": []
},
{
"id": 189,
"type": "D2 Regex Switcher",
"pos": {
"0": -2234.232177734375,
"1": 18.05702781677246
},
"size": {
"0": 286.4732666015625,
"1": 323.396728515625
},
"flags": {
"collapsed": false
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 214,
"widget": {
"name": "text"
}
},
{
"name": "prefix",
"type": "STRING",
"link": null,
"widget": {
"name": "prefix"
}
},
{
"name": "suffix",
"type": "STRING",
"link": null,
"widget": {
"name": "suffix"
}
}
],
"outputs": [
{
"name": "combined_text",
"type": "STRING",
"links": [
239
],
"slot_index": 0,
"shape": 3
},
{
"name": "prefix",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "suffix",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "index",
"type": "INT",
"links": [
223
],
"slot_index": 3,
"shape": 3
}
],
"properties": {
"Node name for S&R": "D2 Regex Switcher"
},
"widgets_values": [
"",
".*Pony.*\n--\n0\n--\n.*SDXL.*\n--\n1\n--\n.*SD15.*\n--\n2\n--\n(.+)\n--\n1\n--\n--\nnone\n",
"",
"",
"_Pony\\mizuiropony_v12.safetensors"
]
},
{
"id": 213,
"type": "easy anythingIndexSwitch",
"pos": {
"0": -690,
"1": -48
},
"size": {
"0": 210,
"1": 114
},
"flags": {},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "value0",
"type": "*",
"link": 256
},
{
"name": "value1",
"type": "*",
"link": 257
},
{
"name": "value2",
"type": "*",
"link": 258
},
{
"name": "value3",
"type": "*",
"link": null
},
{
"name": "index",
"type": "INT",
"link": null,
"widget": {
"name": "index"
}
}
],
"outputs": [
{
"name": "value",
"type": "*",
"links": [
259
],
"slot_index": 0,
"shape": 3
}
],
"title": "PromptSwitch",
"properties": {
"Node name for S&R": "easy anythingIndexSwitch"
},
"widgets_values": [
0
]
},
{
"id": 201,
"type": "Anything Everywhere?",
"pos": {
"0": -2116,
"1": 469
},
"size": {
"0": 315,
"1": 148
},
"flags": {
"collapsed": true
},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "*",
"link": 240,
"color_on": ""
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Anything Everywhere?",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
"PromptSwitch",
"index",
".*",
"0"
]
},
{
"id": 181,
"type": "Anything Everywhere?",
"pos": {
"0": -2105,
"1": 379
},
"size": {
"0": 315,
"1": 148
},
"flags": {
"collapsed": true
},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "*",
"link": 223,
"color_on": ""
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Anything Everywhere?",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
"EagleFolderSwitch",
"index",
".*",
"0"
]
},
{
"id": 177,
"type": "GODMT_BatchGetByIndex",
"pos": {
"0": 1913.33837890625,
"1": 91.01555633544922
},
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "LIST",
"type": "LIST",
"link": 189
},
{
"name": "index",
"type": "INT",
"link": null,
"widget": {
"name": "index"
}
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": [
222
],
"slot_index": 0,
"shape": 3
}
],
"title": "EagleFolderSwitch",
"properties": {
"Node name for S&R": "GODMT_BatchGetByIndex"
},
"widgets_values": [
0
]
},
{
"id": 178,
"type": "D2 Multi Output",
"pos": {
"0": 1683.33837890625,
"1": 101.01555633544922
},
"size": {
"0": 210,
"1": 177.93312072753906
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LIST",
"type": "LIST",
"links": [
189
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "D2 Multi Output"
},
"widgets_values": [
"STRING",
"M0E6EPMTV4D1K\nM0E6K1W05IJV3\nM1VWMZ3G7C8GI\nLC1H7HYXICFP4",
0
]
},
{
"id": 205,
"type": "PromptComposerTextSingle",
"pos": {
"0": -1886.39111328125,
"1": -68.04351806640625
},
"size": {
"0": 352.7479553222656,
"1": 140.05397033691406
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "text_in_opt",
"type": "STRING",
"link": 255,
"widget": {
"name": "text_in_opt"
}
}
],
"outputs": [
{
"name": "text_out",
"type": "STRING",
"links": [
252
],
"slot_index": 0,
"shape": 3
}
],
"title": "PonyPP",
"properties": {
"Node name for S&R": "PromptComposerTextSingle"
},
"widgets_values": [
"(anime screencap), (highres:1.3)",
1,
true,
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 215,
"type": "Note",
"pos": {
"0": 1685,
"1": -117
},
"size": [
251.18157958984375,
111.01797866821289
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Eagleフォルダは新規作成した時は設定したあとComfyを再起動しないと反映されないことがある。"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 179,
"type": "Note",
"pos": {
"0": 1916,
"1": 188
},
"size": [
210,
98.50809097290039
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"0:pony\n1:SDXL\n2:SD15\n3:other"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 97,
"type": "Note",
"pos": {
"0": -1487,
"1": -78
},
"size": {
"0": 357.7489318847656,
"1": 137.30465698242188
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"source_anime,日本アニメ系\nrating_safe, 全年齢\nrating_questionable, ちょいエロ\nrating_explicit, 露骨なエロ\nscore_6, score_5, score_4, source_cartoon,カートゥーン系"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 10,
"type": "easy comfyLoader",
"pos": {
"0": 140,
"1": 50
},
"size": [
341.90106201171875,
330
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "optional_lora_stack",
"type": "LORA_STACK",
"link": null
},
{
"name": "optional_controlnet_stack",
"type": "CONTROL_NET_STACK",
"link": null
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": [
170
],
"slot_index": 0,
"shape": 3
},
{
"name": "model",
"type": "MODEL",
"links": [
172,
249
],
"slot_index": 1,
"shape": 3
},
{
"name": "vae",
"type": "VAE",
"links": [],
"slot_index": 2,
"shape": 3
}
],
"title": "easy comfyLoader",
"properties": {
"Node name for S&R": "easy comfyLoader"
},
"widgets_values": [
"_Pony\\mizuiropony_v12.safetensors",
"Pony\\ponyStandardVAE_v1.safetensors",
-2,
"None",
0.41000000000000003,
0.434,
"768 x 1024",
512,
512,
"",
"",
1
]
},
{
"id": 171,
"type": "D2 Multi Output",
"pos": {
"0": -1088,
"1": 377
},
"size": {
"0": 210,
"1": 174.65609741210938
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LIST",
"type": "LIST",
"links": [
173
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "D2 Multi Output"
},
"widgets_values": [
"STRING",
"safe\nsensitive\nnsfw\nexplicit nsfw",
0
]
},
{
"id": 49,
"type": "ShowText|pysssss",
"pos": {
"0": -286,
"1": 757
},
"size": {
"0": 350.4250793457031,
"1": 197.25906372070312
},
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 88,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"title": "NP",
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"score_6, score_5, score_4, source_cartoon,, bad anatomy,monochrome,blurry, lowres,watermark,3d,ui,text,muscular"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 204,
"type": "Text Multiline",
"pos": {
"0": -685,
"1": 397
},
"size": {
"0": 350.9141845703125,
"1": 125.06126403808594
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
243
],
"slot_index": 0,
"shape": 3
}
],
"title": "共通NP",
"properties": {
"Node name for S&R": "Text Multiline"
},
"widgets_values": [
"bad anatomy,monochrome,blurry, lowres,watermark,3d,ui,text,muscular"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 110,
"type": "DF_Image_scale_by_ratio",
"pos": {
"0": 424,
"1": 768
},
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 41,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 261
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
116
],
"slot_index": 0,
"shape": 3
}
],
"title": "DF_Image_scale_by_ratio",
"properties": {
"Node name for S&R": "DF_Image_scale_by_ratio"
},
"widgets_values": [
1.23,
"nearest-exact",
"disabled"
]
},
{
"id": 103,
"type": "easy kSampler",
"pos": {
"0": 699.5654296875,
"1": 759.8260498046875
},
"size": {
"0": 882.1276245117188,
"1": 658.759521484375
},
"flags": {},
"order": 45,
"mode": 4,
"inputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"link": 108
},
{
"name": "model",
"type": "MODEL",
"link": null
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": [
280
],
"shape": 3,
"slot_index": 0
},
{
"name": "image",
"type": "IMAGE",
"links": [],
"slot_index": 1,
"shape": 3
}
],
"title": "easy kSampler",
"properties": {
"Node name for S&R": "easy kSampler"
},
"widgets_values": [
"Preview",
0,
"ComfyUI"
]
},
{
"id": 218,
"type": "easy pipeOut",
"pos": {
"0": 1618,
"1": 760
},
"size": {
"0": 210,
"1": 186
},
"flags": {},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"link": 280
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": null,
"shape": 3
},
{
"name": "model",
"type": "MODEL",
"links": null,
"shape": 3
},
{
"name": "pos",
"type": "CONDITIONING",
"links": null,
"shape": 3
},
{
"name": "neg",
"type": "CONDITIONING",
"links": null,
"shape": 3
},
{
"name": "latent",
"type": "LATENT",
"links": null,
"shape": 3
},
{
"name": "vae",
"type": "VAE",
"links": null,
"shape": 3
},
{
"name": "clip",
"type": "CLIP",
"links": null,
"shape": 3
},
{
"name": "image",
"type": "IMAGE",
"links": [
279
],
"shape": 3,
"slot_index": 7
},
{
"name": "seed",
"type": "INT",
"links": null,
"shape": 3
}
],
"title": "easy pipeOut",
"properties": {
"Node name for S&R": "easy pipeOut"
}
},
{
"id": 157,
"type": "Anything Everywhere?",
"pos": {
"0": 1623,
"1": 987
},
"size": {
"0": 210,
"1": 148
},
"flags": {},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "*",
"link": 279,
"color_on": "#64B5F6"
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Anything Everywhere?",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
".*",
".*",
"SendEagle",
"Tensor shape torch.Size([1, 1024, 768, 3])"
]
},
{
"id": 17,
"type": "easy kSampler",
"pos": {
"0": 715,
"1": 4
},
"size": {
"0": 861.4754638671875,
"1": 568.8130493164062
},
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"link": 134
},
{
"name": "model",
"type": "MODEL",
"link": 249
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": [
271
],
"slot_index": 0,
"shape": 3
},
{
"name": "image",
"type": "IMAGE",
"links": [
261
],
"slot_index": 1,
"shape": 3
}
],
"title": "CN-posetest",
"properties": {
"Node name for S&R": "easy kSampler"
},
"widgets_values": [
"Preview",
0,
"ComfyUI"
]
},
{
"id": 102,
"type": "easy preSampling",
"pos": {
"0": 418.5654296875,
"1": 927.8260498046875
},
"size": {
"0": 253.9497833251953,
"1": 242
},
"flags": {},
"order": 43,
"mode": 4,
"inputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"link": 282
},
{
"name": "image_to_latent",
"type": "IMAGE",
"link": 116
},
{
"name": "latent",
"type": "LATENT",
"link": null
}
],
"outputs": [
{
"name": "pipe",
"type": "PIPE_LINE",
"links": [
108
],
"slot_index": 0,
"shape": 3
}
],
"title": "easy preSampling",
"properties": {
"Node name for S&R": "easy preSampling"
},
"widgets_values": [
20,
6,
"dpmpp_3m_sde_gpu",
"karras",
0.516,
676171245638037,
"fixed"
]
},
{
"id": 219,
"type": "GODMT_AnyCast",
"pos": {
"0": 721,
"1": 634
},
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "ANY",
"type": "*",
"link": 271
}
],
"outputs": [
{
"name": "PIPE_LINE",
"type": "*",
"links": [
282
],
"shape": 3,
"label": "*",
"slot_index": 0
}
],
"title": "GODMT_AnyCast",
"properties": {
"Node name for S&R": "GODMT_AnyCast"
},
"widgets_values": [
"*"
]
},
{
"id": 141,
"type": "Seed Everywhere",
"pos": {
"0": 410,
"1": 470
},
"size": {
"0": 270.5237731933594,
"1": 124
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Seed Everywhere",
"group_restricted": 0,
"color_restricted": 0
},
"widgets_values": [
112589906846212,
"fixed",
"112589906846212"
]
},
{
"id": 193,
"type": "D2 Send Eagle",
"pos": {
"0": 2167,
"1": 99
},
"size": [
220,
472
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": null
},
{
"name": "positive",
"type": "STRING",
"link": null,
"widget": {
"name": "positive"
}
},
{
"name": "negative",
"type": "STRING",
"link": null,
"widget": {
"name": "negative"
}
},
{
"name": "eagle_folder",
"type": "STRING",
"link": 222,
"widget": {
"name": "eagle_folder"
}
},
{
"name": "filename_template",
"type": "STRING",
"link": 238,
"widget": {
"name": "filename_template"
}
}
],
"outputs": [
{
"name": "positive",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "negative",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "D2 Send Eagle"
},
"widgets_values": [
"",
"",
"png",
true,
100,
"None",
"test",
"M0E6EPMTV4D1K",
""
]
}
],
"links": [
[
81,
46,
1,
91,
0,
"STRING"
],
[
88,
99,
0,
49,
0,
"STRING"
],
[
108,
102,
0,
103,
0,
"PIPE_LINE"
],
[
116,
110,
0,
102,
1,
"IMAGE"
],
[
134,
19,
0,
17,
0,
"PIPE_LINE"
],
[
157,
99,
0,
159,
0,
"STRING"
],
[
158,
70,
0,
160,
0,
"STRING"
],
[
165,
165,
0,
92,
0,
"STRING"
],
[
166,
46,
1,
101,
0,
"STRING"
],
[
167,
92,
0,
166,
0,
"*"
],
[
168,
101,
0,
166,
1,
"*"
],
[
170,
10,
0,
167,
0,
"PIPE_LINE"
],
[
172,
10,
1,
168,
0,
"*"
],
[
173,
171,
0,
170,
0,
"LIST"
],
[
174,
170,
0,
93,
0,
"STRING"
],
[
175,
93,
0,
172,
0,
"*"
],
[
176,
91,
0,
172,
1,
"*"
],
[
188,
70,
0,
48,
0,
"STRING"
],
[
189,
178,
0,
177,
0,
"LIST"
],
[
214,
188,
0,
189,
0,
"STRING"
],
[
222,
177,
0,
193,
3,
"STRING"
],
[
223,
189,
3,
181,
0,
"INT"
],
[
225,
195,
0,
70,
0,
"STRING"
],
[
226,
195,
1,
99,
0,
"STRING"
],
[
232,
168,
0,
185,
0,
"LIST"
],
[
236,
184,
0,
198,
0,
"STRING"
],
[
238,
198,
0,
193,
4,
"STRING"
],
[
239,
189,
0,
200,
0,
"*"
],
[
240,
200,
0,
201,
0,
"INT"
],
[
243,
204,
0,
99,
1,
"STRING"
],
[
244,
203,
0,
70,
1,
"STRING"
],
[
245,
164,
0,
165,
0,
"LIST"
],
[
246,
167,
0,
19,
0,
"PIPE_LINE"
],
[
249,
10,
1,
17,
1,
"MODEL"
],
[
252,
205,
0,
209,
0,
"*"
],
[
253,
206,
0,
209,
1,
"*"
],
[
254,
210,
1,
206,
0,
"STRING"
],
[
255,
212,
3,
205,
0,
"STRING"
],
[
256,
166,
0,
213,
0,
"*"
],
[
257,
172,
0,
213,
1,
"*"
],
[
258,
209,
0,
213,
2,
"*"
],
[
259,
213,
0,
195,
0,
"PACK"
],
[
261,
17,
1,
110,
0,
"IMAGE"
],
[
271,
17,
0,
219,
0,
"*"
],
[
279,
218,
7,
157,
0,
"IMAGE"
],
[
280,
103,
0,
218,
0,
"PIPE_LINE"
],
[
282,
219,
0,
102,
0,
"PIPE_LINE"
]
],
"groups": [
{
"title": "分岐スイッチ",
"bounding": [
-2244,
-152,
328,
633
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "プロンプトSDXL",
"bounding": [
-1108,
-151,
399,
924
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "SendEagle",
"bounding": [
1654,
8,
756,
494
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "Highres-Fix",
"bounding": [
399,
676,
1203,
763
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "プロンプトPony",
"bounding": [
-1496,
-152,
381,
925
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "基本t2i部分",
"bounding": [
120,
-84,
1481,
733
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "プロンプトSD1.5",
"bounding": [
-1906,
-152,
401,
929
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"workspace_info": {
"id": "-dYKmvMJMF1AD2QohkNJE"
},
"0246.VERSION": [
0,
0,
4
]
},
"version": 0.4
}
この自動切り替えはモデル名またはフォルダパスに指定の文字列(PonyやSDXLなど)が含まれている事が前提です。
私の場合はフォルダをモデル種類ごとで分けているのでフォルダ名で検索にヒットするようになっています。
プロンプト自動切り替えのポイント説明
Pack-Unpack(List-Utils)
既存にあるノードを大量に繋いでゴリ押しで分岐作っててリストやスイッチ操作で満足できるのがないって動物園サーバーでぼやいてたら作ってくれました(神か?)
godmt/ComfyUI-List-Utils (github.com)
これはPackに繋いだノードを自動判別してUnpackで取り出すことができます。
出力はインプットナンバーと紐づいています。
0246ノードでも同じことができますが、こちらのほうがよりシンプルです。
まだ間に違うノードを挟んでもUnpackする時に元のPackを判別してくれます。
つまりこういう事ができるわけですね(神)
更に間にConcat系を挟んで入力をまとめたり、Everywareで飛ばしたりとかもできます。
モデル情報を吸い出す(List-Utils)
ModelLoaderなどからGet Widgets Valuesに繋ぐと内部情報をバッチリストで出力してくれます。
それをBatchGetByIndexでモデル情報だけ吸い出し、次の項で説明するノードに渡します。
モデル名取得と正規表現による分岐(D-2nodes,List-Utils)
da2el-ai/D2-nodes-ComfyUI (github.com)
こちらも私が動物園サーバーで正規表現で分岐できないから正規表現置き換えを直列で複数繋いでゴリ押ししてたら作ってくれました(神か。2人目)
.*などの正規表現記法についてはここでは長くなるので触れませんが、.*検索マッチしたい単語.*でどんな文字列がきてもマッチしたい単語にヒットします。
combined_textからは置き換えたテキストが出力されます。
indexからは置き換えに使用されたリスト番号が出力されます(0から)
記法ルール
検索ワード
--
置き換えワード
--
--
何もマッチしなかった時に出力される(ここが選ばれた時のインデックス番号は-1)
ハイフン2本が仕切りで、ハイフン2本を2行書いたらその下のワードはすべての検索にヒットしなかった時に出力されます。
検索ワードと置き換えワードの組み合わせは無限に増やせるのでElse IFやSwitch case的な使い方が可能です。
今回の使い方
Switch系のノードでインデックス番号を切り替えてノード接続を変えるために単純な置き換え文字ではなく数字出力にしています。(この方式にすることで、A系モデルとB系モデルは同じクォリティプロンプトを使うなどの時に複数回書く必要がなくなります)
(.+)はすべての文字列マッチを表します。
マッチしなかったら一番下のでいいのでは? と思うかもしれませんが、思い出してくださいIndex番号が-1になります。(スイッチ系ノードは0~なのでバグります)
なのでこの記法の場合、一番下が選ばれることはありません。
今回のワークフローではcombined_textから出力される番号をプロンプト切り替え、indexから出力される番号をSendEagleのモデル別自動フォルダ仕分けのスイッチとしています。
豆:AnyCastは全てのノードタイプを自動判別して出力側を好きに変換できる神ノードです。
これもList-Utils。かゆい所に手が届かん!てなったらList-Utils入れれば大体解決するまである。
これ系のノードは他にもありますが、バラけていてUtil系しか使わないのに色々入れなきゃ…になりがちな上、Any toがまず少ないです。
qq-nodesのAny to Anyもありますが出力がその他系になるのでEverywareで目的の場所に飛ばせない問題があります。
テキストリストを簡素化する技
短文でも普通にインデックスでテキスト切り替えをやろうとすると、基本的にはこうなるわけですが、
まーびっくりするくらい邪魔ですわな…。
これと同じことをD2-nodesとList-Utilsを使うとこうなります。
あらスッキリ。
ワイルドカードとかプリセットを使って切り替えとかするほど大仰じゃなくてちょっと書き換えたい系がある時にメチャクチャ便利です。
ポジティブとネガティブの最終出力を作る
いままでの自動分岐などを行った最終出力と共通で使うものなどをConcatで結合してプロンプトとして渡します。
重複タグを弾きたい時
Tag Duplicate RemoverをConcatした後の最後に入れてください。
(重複しない人も多いと思うのでワークフローには入れていません)
自動切り替えの置く位置について
EasyUse,Efficiencyなどの統合Loaderはモデルのロードとプロンプトの受取を同じノードでできますが、分岐処理を行うより前にプロンプトを受け取ってしまうように繋ぐと当然ですがエラーになるので注意してください。
SendEagleのフォルダ自動仕分け
ほとんど前項までに説明したものの応用です。
EagleFolderSwitchはEverywareでの飛ばし先に指定しやすくするために名前を変えてあるだけで、ノードとしてはBatchGetByIndexです。
ここでの正規表現は抜き出したモデル情報にパスが含まれている事があるため、それを除外します。
^.+[/\\](.+)\.[^.]+$
\1は()で括られている範囲内にマッチした文字を返します。
まとめ
今回紹介したList-UtilsとD2-nodesは文字列系をいじる時や複雑な処理を作る時に超絶便利なのでとりあえず入れましょう。(今回使ってない他のノードでもめっちゃ便利なのあります。
これとかもうコード打てちゃうからね!
(ちょいあれないんだけどあれ…って色んなカスタムノード探し回ってる間に打ったほうがはえぇなって思うことありますよね?)
まとめが自動仕分け関係なくなってるけどまぁいいかw
他に便利な使い方を見つけたらぜひ教えて下さい。