Comfy-Org / Comfy-Org/ComfyUI

Feature Request: Allow Inputs to Directly Connect to Outputs Within Subgraphs

Open
#11,111 2 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Feature Idea

Oftentimes workflows will contain multiple K-Sampler nodes for different stages of sampling. If one wants to use the same sampler + scheduler along multiple different samplers, there is no easy way as of now to change them from one place. This issue, along with many other potential issues, could be solved by allowing an input within a subgraph to connect directly to the output (provided it also connects with a 'defining' input).

### Existing Solutions

There is a custom workaround for this, but it is not saved properly when exporting your workflow. This means that others cannot easily use your workflow. A simple workflow where I showcase this feature is included below:

Image

Image

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.