comfyUI-enviral-design-node-pack
Small, dependency-light ComfyUI utility nodes from Enviral Design.
The goal of this pack is to keep genuinely useful glue nodes in one place without pulling in a large third-party custom-node bundle just to get one tiny piece of functionality.
Included
Text Split (Delimiter)
Splits an input string using a delimiter and returns:
part_1throughpart_20remaindercount
Behavior:
output_countcontrols how many leading parts are emitted before overflow is collected intoremainderstrip_partstrims whitespace around each partskip_emptyremoves empty parts after splittingdelimitersupports common escape strings such as\n,\r\n,\r, and\t
This node intentionally uses a fixed socket layout instead of dynamic outputs so saved workflows stay predictable and easy to debug.
Lazy Index Switch
Selects one of input_0 through input_19 using a zero-based index value.
Behavior:
- accepts any ComfyUI type on its input sockets
- evaluates only the selected input branch
- pairs with combo-style nodes that expose an
INDEXoutput - reports a clear validation error if the selected input is not connected
Enviral Image Resize Kit
Resizes an image with a small set of explicit workflow-friendly modes:
pass-through: keeps the input image resolution and ignores width/heightexplicit resize: stretches the image to the requested width and heightinside fit: preserves the full image, pads to the requested aspect ratio, then outputs the requested width and heightoutside fit: fills the requested aspect ratio and center-crops overflow
The mode input is a dropdown, but it also accepts linked strings such as
resize, pad, crop, and pass-through. This makes it pair cleanly with
combo nodes that output strings. Optional masks are transformed with the same
geometry and the node returns image, width, height, and mask.
Enviral Color Match V2
Transfers color from a reference image batch to a target image batch.
Inputs:
image_target: image batch to recolorimage_ref: image batch to sample color frommethod:mkl,hm,reinhard,mvgd,hm-mvgd-hm,hm-mkl-hm, orreinhard_lab_gpustrength: blend/extrapolation amount, where0is unchanged and1is the matched resultmultithread: enables threaded CPU processing for multi-image batches
The CPU methods use color-matcher. The reinhard_lab_gpu method uses
ComfyUI's Kornia dependency for Lab-space matching.
Model Patch Torch Settings
Patches a MODEL with ComfyUI model callbacks for PyTorch backend settings.
Inputs:
model: model to clone and patchenable_fp16_accumulation: togglestorch.backends.cuda.matmul.allow_fp16_accumulationwhile the model runs
When enabled, the patched model turns full FP16 accumulation on before model execution and turns it back off during cleanup. When disabled, it forces the setting off before model execution.
LM Studio Unified (URL + API Key)
Sends text, an image, or both to an LM Studio OpenAI-compatible chat endpoint.
Inputs:
base_url: acceptshttp://127.0.0.1:1234/v1,https://lmstudio.example.com, or a full/v1/chat/completionsURLapi_key: optional bearer token for LM Studio API-token authapi_key_env_var: optional environment variable fallback whenapi_keyis blank, defaulting toLMSTUDIO_API_KEY. On Windows, this checks the current process first, then the User and Machine environment variable registry values.model,prompt,system_prompt,seed,max_tokens,temperature, andtimeout_seconds- optional
imageinput for vision-capable models. If the input is an IMAGE batch, each frame is sent as a separateimage_urlcontent part, capped bymax_images
For a secured Cloudflare route, use a public base_url such as:
https://lmstudio.enviral-design.com
The node will call:
https://lmstudio.enviral-design.com/v1/chat/completions
Install
Clone this repo into ComfyUI/custom_nodes and restart ComfyUI.
ComfyUI/custom_nodes/comfyUI-enviral-design-node-pack
Donations & Support
If this saves you time, you can support the work here: