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.
10 lines
291 B
JavaScript
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;
|
|
};
|
|
|