Files
AEmotionStudio-ComfyUI-Shad…/web
Æmotion StudioandClaude Opus 5 f91c1e4954 feat: choosing a preset writes the widgets it controls
A preset was applied at execution time, so the panel lied: select explore and
shader_strength kept showing its old value while the run used 0.30.

web/src/preset_widgets.ts wraps the preset widget's callback and writes the
bundle into the widgets it names, running each widget's own callback so the
shader preview follows. Editing one of those widgets to a value the preset does
not hold drops the preset back to custom -- otherwise the panel would just lie
the other way. The Walk node keeps the parameter it ramps, and a saved workflow is
never rewritten on load.

The table comes from GET /shader_noise_ksampler/presets rather than a copy in
TypeScript, because preset values get recalibrated and a copy would drift. The
Python override stays the authority: API submissions and the Walk node never run
the JS.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-12 14:04:01 -07:00
..