Enigmatic Nodes
ComfyUI custom nodes by enigmatice: mask utilities and analog video effects
ComfyUI Enigmatic Nodes
A growing collection of ComfyUI custom nodes and UI tools by enigmatice.
Nodes
Mask Remove Small Regions
Cleans up a mask by erasing any disconnected white blob smaller than min_area pixels. Useful for removing stray noise dots that cause crop nodes to jump to unexpected positions.
Category: masking
Mask Hold Until Stable
Takes a batch of masks (e.g. from a face-detection node over a video) and outputs a single held crop — locked to either the first frame whose mask exceeds a size threshold, or the peak (largest) frame in the batch. Eliminates jitter when using animated crops on talking-head footage.
Category: masking
Load & Trim Audio
Loads an audio file from the ComfyUI input folder (with an Upload button, or drag a file straight onto the node) and draws an interactive waveform right on the node. Click the waveform to place a playhead, then press I / O to set the trim in/out points there; drag the shaded region's edges to trim by hand, drag the middle to slide the whole selection, and use ← / → to nudge the playhead (hold Shift for a bigger step). Hit Play (or Space) to preview just the trimmed region, and double-click to reset to the full clip. Outputs the sample-accurate trimmed AUDIO plus its duration in seconds.
Category: enigmatic
Load & Trim Video
Loads a video from the ComfyUI input folder (with an Upload button, or drag a file straight onto the node) and shows a live frame preview with a scrub timeline right on the node. Click the preview to place a playhead, then press I / O to set the trim in/out points; step frame-by-frame with ← / → (Shift = 10 frames), and hit Play (or Space) to preview the trimmed range. Resolution follows the source's own aspect ratio — just set the longest edge and the other side is computed automatically (16:9 @ 1280 → 720, 1:1 @ 720 → 720; 0 keeps the original). select_every_nth and frame_load_cap thin or cap the output. Outputs the trimmed frames as IMAGE, a native VIDEO, and the trimmed AUDIO, plus frame_count, fps, width, and height.
Category: enigmatic
Video Resolution Picker
Outputs a width and height calculated from a chosen aspect ratio (1:1, 16:9, 9:16) and a longest-side value, snapped to a step size for model compatibility. Eliminates manual math when wiring resolution inputs for video generation nodes.
Category: image
UI Extensions
Theme Engine
A floating 🎨 Theme button on the canvas opens a gallery of 40+ color themes (Cyberpunk, Nord, Dracula, Dungeon, Cotton Candy, and many more). Each theme recolors the ComfyUI interface and canvas nodes, and you can search or filter the gallery by color, mood, or name. Your chosen theme persists across sessions.
Node Color Picker
A floating toolbar that appears whenever nodes or groups are selected. The color swatch button opens a palette of coordinated themes to recolor just your selected nodes, a group, or both at once. Alignment buttons (left, right, top, bottom, center, distribute) let you snap selected nodes and groups into place without leaving the canvas.
Installation
Via ComfyUI Manager
Search for Enigmatic Nodes.
Manual
cd ComfyUI/custom_nodes
git clone https://github.com/enigmatice/comfyui-enigmatic-nodes
Restart ComfyUI.
License
MIT