Node packÜberprüftExtern
ComfyUI-OverrideSwitch
We'll output one of two values based on a Boolean (true or false), with a settable default value should one input be missing.
Betreuer@SpaceWarpStudioUnratedBewertung
Paketprofil
- Status
- Überprüft
- Verleger
- @SpaceWarpStudio
- Quelle
- GitHub
README
ComfyUI Override Switch
A custom node for ComfyUI that provides a switch with override behavior. This node allows you to switch between two inputs based on a boolean condition, with graceful handling of missing inputs.
Features
- Optional boolean condition input (defaults to False if not provided)
- Handles missing inputs gracefully
- Works with any input type
- Clear and intuitive interface
Installation
- Navigate to your ComfyUI's
custom_nodesdirectory - Clone this repository:
git clone https://github.com/SpaceWarpStudio/ComfyUI-OverrideSwitch.git
- Install the node:
cd ComfyUI-OverrideSwitch
pip install -e .
Usage
The node has three optional inputs:
condition: Boolean input that determines which input to usetrue_input: Input to use when condition is Truefalse_input: Input to use when condition is False
Default behaviors:
- If condition is not provided or None: defaults to False
- If true_input is missing and condition is True: uses false_input
- If false_input is missing and condition is False: returns None
- If both inputs are missing: returns None
License
This project is licensed under the MIT License.
Knoten in diesem Paket
1 Knoten
Knoten in diesem Paket
1 Knoten- OverrideSwitch
Quellen
3 Quellen
Quellen
3 QuellenBequemes VerzeichnisQuelle
raw.githubusercontent.com/Comfy-Org/ComfyUI-Manager/main/extension-node-map.jsonVerifiziert 3. Okt.
GitHubQuelleVersion bc52182b6019e46d21498b079d4a649b782a43d7
github.com/SpaceWarpStudio/ComfyUI-OverrideSwitchVerifiziert 3. Okt.
Quellenauszüge
1 Auszug
Quellenauszüge
1 AuszugSource context: Repo SpaceWarpStudio/ComfyUI-OverrideSwitch
