ComfyUI Node

GRMenuHook

Keep nodes locked inside their groups, and auto-group the stragglers

By GraftingRayman·Created 2 years ago·Updated about a month ago· 76
GRMenuHook

      The author's own framing is refreshingly honest: "This node adds some features that are not needed, but they are wanted." That's exactly what this is - pure workflow-organization tooling that doesn't touch your generation pipeline at all, it just makes a messy canvas easier to live with.

      How it works

      Two things, both about groups. First, it can keep nodes physically inside their group's boundary and arrange them in a few different layouts when you move things around - a small annoyance in a big ComfyUI graph is dragging a group and having a node drift outside its box, or nodes ending up stacked in a way that's hard to read; this node addresses that directly. Second, and the more genuinely useful feature, is a one-click action that gathers every node not currently in a group and drops them into a new one - handy for cleaning up a workflow that's accumulated loose, ungrouped nodes over time without you having to manually box-select and group them yourself.

      Because it's a canvas-behavior node rather than a data-processing one, it has no inputs or outputs at all - you place it once, and its effect is on how the graph editor behaves, not on anything flowing through wires.

      The inputs and outputs that matter

      There genuinely aren't any. No required inputs, no optional inputs, no outputs. This node's job is entirely in the editor UI it enables once it's on your canvas - the group-containment behavior and the one-click "group the loose nodes" action described above.

      How to install it

      Via ComfyUI Manager: search "GraftingRayman", install, restart. Manually:

      cd ComfyUI/custom_nodes
      git clone https://github.com/GraftingRayman/ComfyUI_GraftingRayman
      

      then restart. Every node in this pack, including this one, needs OpenAI's CLIP package installed alongside ComfyUI's own CLIP handling:

      # portable build
      .\python_embeded\python.exe -m pip install git+https://github.com/openai/CLIP.git
      
      # system python
      pip install git+https://github.com/openai/CLIP.git
      

      Without it, the whole pack fails to import - this node won't be in your search results either, even though it has nothing to do with CLIP.

      Common issues & troubleshooting

      Node missing from search. That's the CLIP dependency above, applying to the whole pack rather than to this specific node.

      Nodes still drift outside their group after adding this. Make sure the node is actually present on the canvas you're editing - it's a graph-level behavior hook, so it needs to be in the same workflow you're rearranging, not just installed in the pack.

      One-click grouping doesn't pick up everything you expected. It groups nodes that aren't currently in any group - nodes already sitting in a different group won't get swept into a new one by this action, since the point is cleaning up strays, not reorganizing groups you've already set up.

      Categoryutils

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs