ComfyUI-EBU-PromptHelper
This ComfyUI extension provides a suite of custom nodes for enhancing and manipulating prompts. Features include random color palette generation, prompt text replacement, prompt randomization using variable names and...
This ComfyUI extension provides a suite of custom nodes for enhancing and manipulating prompts. Features include random color palette generation, prompt text replacement, prompt randomization using variable names and...
Package profile
- Status
- Listed
- Publisher
- @burnsbert
- Source
- GitHub
- Stars
- 2
README
This ComfyUI extension provides a suite of custom nodes for enhancing and manipulating prompts. Features include random color palette generation, prompt text replacement, prompt randomization using variable names and lists of options, list sampling, file loading, current datetime formatting, and season/weather/time-of-day generation.
Nodes in this pack
12 nodes
Nodes in this pack
12 nodes- EbuPromptHelperCharacterDescriberFemale
EbuPromptHelperCharacterDescriberFemale
Randomly generates a detailed facial description of a female character. Extremely imperfect and limited but will help you spin up quicky for colorful descriptions. Inputs: - seed (INT): Random seed (0 for non-deterministic). - eyesenabled, noseenabled, mouthenabled, lipsenabled, faceshapeenabled, browenabled, earsenabled, cheekbonesenabled, cheeksenabled, chinenabled, skinenabled, makeupenabled, neckenabled, accessoriesenabled (BOOLEAN): Toggles for including each feature category. Makeup and accessories are off by default. Returns: - facedescription (STRING): Multi-line description broken down by enabled categories. - hairstyle (STRING): Randomly selected hairstyle from STYLEOPTIONS. - haircolor (STRING): Randomly selected natural hair color from COLOROPTIONS. - facialexpression (STRING): Descriptive facial expression.
Prompts · 0 inputs · 15 parameters · 4 outputs
- EbuPromptHelperCharacterDescriberMale
EbuPromptHelperCharacterDescriberMale
Randomly generates a detailed facial and hair description of a male character with optional facial hair. Extremely imperfect and limited but will help you spin up quicky for colorful descriptions. Inputs: - seed (INT): Random seed (0 for non-deterministic). - eyesenabled, noseenabled, mouthenabled, faceshapeenabled, browenabled, earsenabled, cheeksandcheekbonesenabled, cheekbonesenabled, chinenabled, skinenabled, neckenabled, accessoriesenabled (BOOLEAN): Toggles for including each feature category. Cheeks and cheekbones can be combined. Neck and accessories are off by default. Returns: - facedescription (STRING): Multi-line description broken down by enabled categories. - hairstyle (STRING): Randomly selected hairstyle from MALEHAIRSTYLEOPTIONS. - haircolor (STRING): Randomly selected natural hair color from MALEHAIRCOLOROPTIONS. - facialhair (STRING): Randomly selected facial hair style from MALEFACIALHAIROPTIONS. - facialexpression (STRING): Descriptive facial expression.
Prompts · 0 inputs · 13 parameters · 5 outputs
- EbuPromptHelperCombineTwoStrings
EbuPromptHelperCombineTwoStrings
Combines two strings using a specified join string. Inputs: - str1 (STRING): First string - str2 (STRING): Second string - joinstr (STRING): String used to join (default: "\n\n") Returns: - combined (STRING): The joined result
Prompts · 0 inputs · 3 parameters · 1 output
- EbuPromptHelperConsumeListItem
EbuPromptHelperConsumeListItem
Selects and removes an item from a list while updating a prompt. Inputs: - wordtoreplace (STRING): Target substring to replace (you can include multiple strings to match separated by |, e.g. 'red|blue|yellow') - list (STRING): Newline-separated list of options - seed (INT): Random seed - prompttext (STRING, optional): Input prompt text Returns: - updatedprompttext (STRING): Modified prompt - wordselected (STRING): Selected list item - revisedlist (STRING): Remaining list items
Prompts · 0 inputs · 4 parameters · 3 outputs
- EbuPromptHelperCurrentDateTime
EbuPromptHelperCurrentDateTime
Returns the current date/time in various formats. Returns: - date (STRING): e.g., "February 10, 2025" - time (STRING): e.g., "1:15pm" - datetime (STRING): e.g., "2025-02-10 1:15:33pm" - datetimeforfilename (STRING): e.g., "2025-02-1013-15-33"
Utility · 0 inputs · 0 parameters · 4 outputs
- EbuPromptHelperListSampler
EbuPromptHelperListSampler
Samples random items from a list, with optional numbering. Inputs: - list (STRING): Newline-separated list of items - seed (INT): Random seed - numberofelements (INT, optional): Number of items to sample (default: 10) - numbersampledlist (BOOLEAN): Whether to number the output list Returns: - (STRING): Sampled items as a newline-separated string
Prompts · 0 inputs · 4 parameters · 1 output
- EbuPromptHelperLoadFileAsString
EbuPromptHelperLoadFileAsString
Loads file contents as a string using UTF-8 encoding. Inputs: - directory (STRING): File directory path - filename (STRING): Name of file to load Returns: - (STRING): File contents or empty string on error
File Operations · 0 inputs · 2 parameters · 1 output
- EbuPromptHelperRandomColorPalette
EbuPromptHelperRandomColorPalette
Generates random color palettes using several possible generation methods. One method is randomly chosen from the enabled options. Inputs: - includeanalogouspalettes (BOOLEAN): Include analogous palettes - includearthousepalettes (BOOLEAN): Include art house palettes - includechaoticpalettes (BOOLEAN): Include chaotic palettes - includecomplementarypalettes (BOOLEAN): Include complementary palettes - includecompoundpalettes (BOOLEAN): Include compound palettes - includesplitcomplementarypalettes (BOOLEAN): Include split complementary palettes - includetetradicpalettes (BOOLEAN): Include tetradic palettes - includetriadicpalettes (BOOLEAN): Include triadic palettes - palettesize (STRING): "3 colors", "4 colors", or "5 colors" - prefercolorfamily (STRING): e.g., "None", "Reds", "Blues", etc. - avoidcolorfamily (STRING): e.g., "None", "Neutrals", etc. - seed (INT): Random seed (0 for non-deterministic) Returns: - palettestring (STRING): Comma-separated color names - color1 ... color5 (STRING): Individual colors - palettetype (STRING): The palette method used - hexvalues (STRING): Comma-separated hex codes
Prompts · 0 inputs · 12 parameters · 8 outputs
- EbuPromptHelperRandomize
EbuPromptHelperRandomize
Replaces a target substring with a randomly selected option from a list. Inputs: - prompttext (STRING): Input prompt text - wordtoreplace (STRING): Target substring to replace (you can include multiple strings to match separated by |, e.g. 'red|blue|yellow') - replacementoptions (STRING): List of possible replacements - randomseed (INT): Seed for random selection - casesensitive (BOOLEAN): Whether to match case when replacing - delimitoptionswith (STRING): How to split options - "newlines", "commas", or "semi-colons" Returns: - updatedprompttext (STRING): The modified prompt - wordselected (STRING): The chosen replacement Weighted Options: - Prefix any option with N>> (where N is an integer) to weight it N times. So '3>>red' would be the same as listing 'red' 3 times. - The numeric prefix is removed before replacement, so the selected text is red rather than 3>>red. Returns: - updatedprompttext (STRING): The modified prompt. - wordselected (STRING): The chosen replacement.
Prompts · 0 inputs · 6 parameters · 2 outputs
- EbuPromptHelperReplace
EbuPromptHelperReplace
Replaces occurrences of one or more target words in a prompt with a specified replacement string. Inputs: - prompttext (STRING): Input prompt text - wordtoreplace (STRING): Target word(s) to replace (use | as delimiter for multiple) - replacewith (STRING): Replacement text - casesensitive (BOOLEAN): Whether to match case when replacing Returns: - updatedprompttext (STRING): The modified prompt
Prompts · 0 inputs · 4 parameters · 1 output
- EbuPromptHelperSeasonWeatherTimeOfDay
EbuPromptHelperSeasonWeatherTimeOfDay
Generates random datetime and weather descriptions. Inputs: - yearfrom (INT): Start year - yearto (INT): End year - timefrom (STRING): Start time (e.g., "6:00am") - timeto (STRING): End time (e.g., "7:00pm") - randomseed (INT): Random seed - yearskew (STRING): How to bias year selection - timeofdayskew (STRING): How to bias time selection Returns: - when (STRING): Full datetime description (e.g., "early morning during early winter of 2020") - whennoyear (STRING): Description without year (e.g., "early morning during early winter") - weather (STRING): Weather description
Prompts · 0 inputs · 5 parameters · 3 outputs
- EbuPromptHelperTruncate
EbuPromptHelperTruncate
This node modifies an input prompt by truncating it at the first occurrence of a specified substring. It offers options to remove everything either before or after the substring, with the choice to include or exclude the substring itself in the deletion. This is particularly useful for dynamically trimming a prompt based on a specific marker. - prompt (STRING): The input prompt text (multiline supported). - substring (STRING): The target substring to search for within the prompt. - deleteoption (STRING): Dropdown selection with two options: - delete before: Removes all text that appears before the substring. - delete after: Removes all text that appears after the substring. - inclusive (BOOLEAN): Toggle that determines whether the substring itself is removed: - True: The substring is removed along with the text. - False: The substring is preserved. - modifiedprompt (STRING): The prompt after the specified truncation has been applied. 1. Example 1: Delete before (inclusive) - Input: - prompt: "Hello world, welcome to the party!" - substring: "welcome" - deleteoption: "delete before" - inclusive: True - Output: " to the party!" Explanation: Everything before and including "welcome" is removed. 2. Example 2: Delete before (non-inclusive) - Input: - prompt: "Hello world, welcome to the party!" - substring: "welcome" - deleteoption: "delete before" - inclusive: False - Output: "welcome to the party!" Explanation: Only the text before "welcome" is removed; the substring remains. 3. Example 3: Delete after (inclusive) - Input: - prompt: "The meeting will start at 3pm, please be o…
Prompts · 0 inputs · 4 parameters · 1 output
Sources
1 source
Sources
1 sourceSource excerpts
1 excerpt
Source excerpts
1 excerptSource context: Repo burnsbert/ComfyUI-EBU-PromptHelper
