ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Support swapping the I/O connection placement/direction

Open rhdunn opened this issue 1 year ago • 1 comments

Use Case

When generating an image it can be useful to show the image next to the input parameters of the workflow. This requires sending the data right-to-left (backwards).

This is currently doable but the pipeline connections are not optimally positioned.

Having nodes (specifically the Reroute node, but also and N I/O channel variants from #3851 and the various pipe extension nodes) that can swap the side the inputs and outputs are located would make these workflow graphs cleaner.

Maybe have an arrow in the middle of the inputs/outputs to show the direction, e.g.:

  | o model      model o |
  | o clip   <=   clip o |
  | o vae          vae o |

rhdunn avatar Jun 24 '24 19:06 rhdunn

For example, this is a workflow of mine where it will be helpful (see the top output line):

workflow-with-reversing-nodes

rhdunn avatar Jun 24 '24 22:06 rhdunn

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Oct 12 '24 11:10 github-actions[bot]

Please move this issue to front repo. https://github.com/Comfy-Org/ComfyUI_frontend

The issue of input/output confusion should be handled with care.

ltdrdata avatar Oct 13 '24 04:10 ltdrdata