Open choey opened 5 months ago
Groups would benefit from some sort of guide lines (like in #228), but that could be a future iteration. Some options to consider:
Maybe both?
Hey, I apologise for the slowness, I think this functionality has since been added to core ComfyUI
This PR addresses #198.
Problem
Groups do not snap like nodes do, which makes maintaining neatly aligned nodes extremely difficult/cumbersome.
Solution
Make groups behave like nodes, by snapping their position and size to the grid:
https://github.com/pythongosssss/ComfyUI-Custom-Scripts/assets/83140/907d17d8-cec8-432c-9373-69dbb49f4eab
When "always snap to grid" is off, holding SHIFT enables snapping for groups, as is the behavior for nodes. Snapping also works when pressing CTRL while dragging a group to release the "tether" from the group to its nodes.