Nodes/h4_Live/h4 - Switcheroo
ComfyUI Node

h4 - Switcheroo

A ComfyUI node in h4_Live/Logic with 26 inputs and 3 outputs.

By m3rr·Created 8 months ago·Updated 16 days ago· 1
h4 - Switcheroo
  • subject
  • clip
  • data
  • string
  • conditioning
swap_count1
case_sensitivefalse
regex_modefalse
strip_whitespacetrue
find_1
replace_1
find_2
replace_2
find_3
replace_3
find_4
replace_4
find_5
replace_5
find_6
replace_6
find_7
replace_7
find_8
replace_8
find_9
replace_9
find_10
replace_10
Categoryh4_Live/Logic

Inputs (26)

NameTypeDefaultDescription
subject*The text, JSON, or data container you want to perform swaps on.
swap_countINT10–10How many find/replace operations to perform.
clipoptCLIPOptional: Connect a CLIP model to enable automatic re-encoding if the subject is a prompt.
case_sensitiveoptBOOLEANfalseIf ON, 'News' and 'news' are treated as different words.
regex_modeoptBOOLEANfalseIf ON, you can use regular expressions (e.g., 'mid-.*') in the FIND boxes.
strip_whitespaceoptBOOLEANtrueIf ON, accidental spaces at the start/end of your entries are ignored.
find_1optSTRINGTarget string for swap #1.
replace_1optSTRINGReplacement string for swap #1.
find_2optSTRINGTarget string for swap #2.
replace_2optSTRINGReplacement string for swap #2.
find_3optSTRINGTarget string for swap #3.
replace_3optSTRINGReplacement string for swap #3.
find_4optSTRINGTarget string for swap #4.
replace_4optSTRINGReplacement string for swap #4.
find_5optSTRINGTarget string for swap #5.
replace_5optSTRINGReplacement string for swap #5.
find_6optSTRINGTarget string for swap #6.
replace_6optSTRINGReplacement string for swap #6.
find_7optSTRINGTarget string for swap #7.
replace_7optSTRINGReplacement string for swap #7.
find_8optSTRINGTarget string for swap #8.
replace_8optSTRINGReplacement string for swap #8.
find_9optSTRINGTarget string for swap #9.
replace_9optSTRINGReplacement string for swap #9.
find_10optSTRINGTarget string for swap #10.
replace_10optSTRINGReplacement string for swap #10.

Outputs (3)

NameTypeDescription
data*
stringSTRING
conditioningCONDITIONING