r/StableDiffusion • • 12h ago

Resource - Update Comfyui subgraph re-ordering

Comfyui Subgraph slots re-ordering In 2 ways-

  1. From inside. Works in nodes 2.0 also.
  2. On subgraph itself(holding down ctrl+alt and left click dragging. This does not work in nodes 2.0 yet.

here is the repo- https://github.com/pravbk100/Comfyui-prSubgraph

edit: please let me know if you find any bugs.

42 Upvotes

17 comments sorted by

9

u/DelinquentTuna 10h ago

This is wonderful. Nice QoL, good job. Something that should've been built into Comfy.

7

u/pravbk100 10h ago

I think there is official pr pending in their repo. It might come in near future versions.

2

u/Icy-Boysenberry1967 9h ago

Great Work!

1

u/pravbk100 9h ago

Thank you.

2

u/reeight 6h ago edited 6h ago

Bug: can't drag an output of a submodule out; will resort inputs.
Bug 2: can't edit values with this loaded.

deleted.

1

u/pravbk100 2h ago

Will check and fix it. Thank you.

1

u/Zealousideal7801 7h ago

Awesome, can you also make it that the promoted sampler previews are visible when the subgraph is collapsed again ? Comfy.org doesn't seem to care outside of their previous (and shitty) nodes 2.0

1

u/pravbk100 2h ago

Willl look into it if feasable or not.

1

u/reeight 6h ago

Helps a bit.
Doesn't help with collapsing the multiline, or allow a linked mulitline to be shuffled.

5

u/No-Persimmon-4150 10h ago

Thats awesome. And you can drag the penis enhancer.

2

u/pravbk100 10h ago

Sorry, what?

3

u/Sad_Willingness7439 9h ago

pEnh lol

1

u/pravbk100 9h ago

Got the joke now. Lol

1

u/wiserdking 9h ago

took you a long time lol.

also this thing is bugged at least on a old comfyui-frontend that im using (1.45.21 cause newest ones broke subgraph custom widget promotion).

the bugs im facing are: inputs/outputs ordering ignores ctrl+alt so things get messy if i'm not careful since its working with mere left mouse click. and for some reason i cannot connect subgraph outputs by clicking (+holding) on them - im forced to bypass that bug by connecting from the next node into the subgraph output.

EDIT: i do not expect you to add support to old frontends - just letting you know anyway

2

u/pravbk100 9h ago edited 9h ago

I am on comfy 46 and latest frontend. Will check with older versions. And try to fix it. In the mean time, did you check re ordering from inside subgraph, does that work properly?

1

u/Outrageous-Wait-8895 7h ago

This sort of thing ain't my bag, baby!