Nodes: Aspect Ratio, Prompt Multiple Styles Selector, Text Concatenate
A collection of custom nodes for ComfyUI designed to enhance your workflow with utilities for aspect ratio generation, multi-style prompt selection, and text concatenation.
ComfyUI/custom_nodes
in your terminal (cmd).custom_nodes
directory using the following command:
git clone https://github.com/Nikosis/ComfyUI-Nikosis-Nodes comfyui-nikosis-nodes
cd comfyui-nikosis-nodes
ComfyUI\custom_nodes\comfyui-nikosis-nodes
:
..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
pip install -r requirements.txt
File: nodes/aspect_ratio_nikosis.py
Category: Nikosis/Utilities
Generates an empty latent tensor for SDXL (4 channels) or SD3/Flux (16 channels) with customizable aspect ratios and dimensions.
1:1
square 1024x1024
, 16:9
landscape 1344x768
) or custom.64–16384
, step 8
) when using custom.Off/On
).1–64
).batch_size x channels x height//8 x width//8
).8
.Select SDXL
, 4:3
landscape 1152x896
, and batch_size=2
to generate two empty latents at 1152x896
for SDXL workflows.
File: nodes/prompt_multiple_styles_selector_nikosis.py
Category: Nikosis/Text
Combines up to four styles from a styles.json
file into positive and negative prompts, with dropdown selection.
styles.json
(defaults to No Style
).styles.json
file in config/
(e.g., comfyui-nikosis-nodes/config/styles.json
).styles.json
{
"Vivid": {"prompt": "bright colors, high detail", "negative_prompt": "dull, blurry"},
"Minimal": {"prompt": "simple, clean", "negative_prompt": "cluttered"},
}
{
"||| PHOTOGRAPHY": {
"prompt": "photography, capturing moments, storytelling, creative composition",
"negative_prompt": "bad anatomy, comics, cropped, cross-eyed, worst quality, low quality, painting, 3D render, drawing,"
},
}
config/
directory if missing.Select Vivid
and Minimal
to get:
bright colors, high detail, simple, clean
dull, blurry, cluttered
File: nodes/text_concatenate_nikosis.py
Category: Nikosis/Text
Concatenates multiple text inputs with a customizable delimiter and optional whitespace cleaning.
", "
; supports \n
for newlines).true/false
).clean_whitespace
is true
.Inputs:
text_a="hello"
text_b="world"
delimiter=" , "
clean_whitespace="true"
Output:
hello , world
ComfyUI/custom_nodes/comfyui-nikosis-nodes/
.styles.json
is correctly formatted for the style selector node.MIT License (see LICENSE
file).