ComfyUI-LZNodes
A ComfyUI extension with 42 custom nodes.
Nodes (42)
ComfyUI-LZNodes
ComfyUI-LZNodes is a collection of custom nodes for ComfyUI designed to simplify complex node workflows and enhance the image generation process.
Features
This extension provides several quality-of-life nodes that condense common workflows:
- LZ Pipe System (
LZPipePack/LZPipePackXL/LZPipeUnpack/LZPipeMerge/LZPipeInfo): Simplifies "spaghetti" node connections by bundlingMODEL,CLIP,VAE,CONDITIONING,LATENT, and generation parameters into a singlelz_pipeconnection. - Smart Loaders:
EZCheckpointLoader: Loads a checkpoint and automatically encodes positive/negative prompts in a single node.LZSimpleCheckpointLoader: A lightweight loader strictly for extracting model components.LZLoRAStacker: Easily stack up to 10 LoRAs with built-in caching for faster generation.LZAnimaLoader: Specialized loader for Anima models that loads the diffusion model, text encoder, and VAE separately.
- Anima Artist Mixer:
LZAnimaArtistNode: Combined node that splits/encodes artist chains and applies cross-attention injection in one step. Outputs(MODEL, CONDITIONING, STRING)with the base prompt text aspositive_textfor direct connection to the pipe system.LZAnimaArtistPack/LZAnimaArtistCrossAttn: Separate split-encode and cross-attn injection nodes for advanced workflows.LZAnimaArtistCrossAttnalso outputspositive_text(STRING).LZAnimaArtistOptions: Advanced options for fine-tuning block ranges, fusion modes, EMA smoothing, low-rank injection, static capture, and anchor Q.
- Prompt Management:
AdvancedPositivePrompt/AdvancedNegativePrompt: Cleanly separate base prompts, artist tags, and quality tags. Automatically concatenates and encodes them.DualCLIPTextEncode: Encodes both positive and negative prompts simultaneously.LZPromptWeight: Automatically wraps prompt tags with weight syntax(tag:weight).LZTagEditor: Visually edit up to 10 tags with individual strength and on/off toggles.LZPromptReplaceSingle/LZPromptReplaceMulti/LZPromptReplaceString: Dynamically replace placeholders in prompts using CSV files or inline candidate lists.
- Text Utilities:
StringNode/StringConcatNode: Basic string output and multi-input concatenation.LZTextPreview: Display string values directly in the node UI.LZStringSanitize: Remove or replace illegal filename characters.LZStringSelect: Select one string from multiple inputs by index.
- All-In-One Sampling (
LZKSamplerDecode): Combines KSampler and VAEDecode into a single step, pulling directly from thelz_piperouting. It can also accept raw text and perform CLIP encoding dynamically if conditioning isn't explicitly provided. - XY Plot System (
LZXYPlot/LZXYPlotSampler/LZXYSampler/LZXYGridOutput): Grid comparison system for checkpoints, LoRAs, samplers, schedulers, and prompt variations. Supports replacement keys and automatic grid image generation with labels. - Comprehensive Image Saving & Logging:
LZSaveImageAndLog: Saves generated images (PNG/WEBP/JPG) alongside a highly detailed.txtlog file capturing everything from Seed and Steps to Checkpoint Hash and full Prompt text. It also injects this data into PNG metadata invisibly.LZBatchSaveWithLabels: Batch-save images with XY labels embedded in filenames and metadata, plus automatic batch log output.LZAppendLogToCSV: Append generation parameters to a CSV file for spreadsheet tracking.LZLogReader: Read back.txtlog files generated byLZSaveImageAndLogto restore parameters as node outputs.
- Model Merge Recipe (
LZMergeRecipeRandom/LZMergeRecipeManual/LZMergeRecipeRandomAdvanced): Generate 19-block merge recipes (IN00-IN08, M00, OUT00-OUT08) compatible with Model Merge tools. - Preset Latent (
PresetEmptyLatentImage): Quickly create empty latent images using common SDXL resolutions. Supports both SDXL (4ch) and Anima (16ch) latent formats.
Node List
| Category | Nodes | |---|---| | Loaders | EZCheckpointLoader, LZSimpleCheckpointLoader, LZLoRAStacker, LZAnimaLoader | | Anima | LZAnimaArtistNode, LZAnimaArtistPack, LZAnimaArtistCrossAttn, LZAnimaArtistOptions | | Prompt | DualCLIPTextEncode, AdvancedPositivePrompt, AdvancedNegativePrompt, LZPromptWeight, LZTagEditor | | Text | StringNode, StringConcatNode, LZTextPreview, LZStringSanitize, LZStringSelect, LZPromptReplaceSingle, LZPromptReplaceMulti, LZPromptReplaceString | | Latent | PresetEmptyLatentImage | | Pipe | LZPipePack, LZPipePackXL, LZPipeUnpack, LZPipeInfo, LZPipeMerge | | Sampling | LZKSamplerDecode | | XY Plot | LZXYPlot, LZXYPlotSampler, LZXYSampler, LZXYGridOutput | | IO | LZSaveImageAndLog, LZBatchSaveWithLabels | | Log | LZAppendLogToCSV, LZLogReader | | Merge | LZMergeRecipeRandom, LZMergeRecipeManual, LZMergeRecipeRandomAdvanced |
Installation
- Navigate to your ComfyUI
custom_nodesdirectory:cd ComfyUI/custom_nodes - Clone this repository:
git clone https://github.com/liz-ils/ComfyUI-LZNodes - Restart ComfyUI.
Usage
Once installed, the nodes can be found in the ComfyUI add-node menu under the MyCustomNodes category (e.g., MyCustomNodes/Loaders, MyCustomNodes/Prompt, MyCustomNodes/Sampling, etc.).
Tip: A great starting point is connecting an EZCheckpointLoader through an LZPipePack to an LZKSamplerDecode, and finishing with LZSaveImageAndLog.
License
This project is licensed under the MIT License - see the LICENSE file for details.
About Third-Party Nodes
Anima Artist Mixer - LZAnimaArtistNode, LZAnimaArtistPack, LZAnimaArtistCrossAttn, and LZAnimaArtistOptions are modified versions of the code from Anima-Artist-Mixer (by An1X3R and 汐浮尘).
- Used under the MIT License:
MIT License
Copyright (c) 2026 An1X3R and 汐浮尘
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.