Files
EnragedAntelope-ComfyUI_Eas…/js
Claude 570f779526 FEATURE: Dynamic region add/remove based on prompt content
Users can now:
- Type into region 3/4 prompts → box automatically appears on canvas
- Delete all text from region 2 → box automatically disappears
- Region selector max updates to match number of active regions

How it works:
1. Watch all region prompt widgets for value changes
2. When prompt gets content, ensure box exists (create with percentage-based defaults)
3. When prompt cleared, remove box from values array
4. Update hidden region_boxes widget
5. Update region selector max value
6. Force canvas redraw

Much more intuitive than manually managing boxes!
Regions are indexed: region 1 prompt → values[0], region 2 → values[1], etc.
2025-11-23 02:10:33 +00:00
..