Files
MdONeilsl-ComfyUI-MdColorMod/web/libs/widgets_module.js
T
MdONeilsl b6a2d1dd79 Add MD Color Mod nodes, operators, and web UI
Introduce a complete GIMP/GEGL-inspired color module for ComfyUI. Adds: node declarations (nodes/*) and matching operator implementations (py/*) for many color/image operations (balance, temperature, hue/chroma, hue/saturation, saturation, exposure, levels, invert, auto adjustments, maps, posterize, desaturate, tone mapping, component extract/mix, etc.). Includes support libs (py/libs: color, process, blur), layer compositing (layers_blending), VRAM‑aware chunking, mask handling and alpha preservation. Adds web UI extension and widgets (web/*), package metadata, dynamic __init__.py loader, README update and .gitignore tweaks.
2026-07-06 08:17:05 -04:00

10 lines
291 B
JavaScript

export const set_node_widget_value = (node, widget_id, value) => {
let widget = node.widgets?.find(w => w.name === widget_id);
if (!widget) return console.error(`Could not find ${widget_id} widget`);
//console.log(`set ${widget_id} to ${value}`);
widget.value = value;
};