Download comfyui-moonpack/fast_node_bypasser.py from MarkLilly/mis-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/comfyui-moonpack/fast_node_bypasser.py
- Command line
-
hf download hf://MarkLilly/mis-custom-nodes/comfyui-moonpack/fast_node_bypasser.py
-
curl -L -o fast_node_bypasser.py https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/comfyui-moonpack/fast_node_bypasser.py
1.22 kB
| from .utils import any_type | |
| class FastNodeBypasser: | |
| """ | |
| A node that allows quick bypassing of connected nodes. | |
| Connect any nodes to this bypasser, and it will create toggle controls for each. | |
| Alternatively, use the 'matchTitle' property to automatically match nodes by title pattern. | |
| """ | |
| def INPUT_TYPES(s): | |
| return { | |
| "required": {}, | |
| "optional": {}, | |
| } | |
| def VALIDATE_INPUTS(s, **kwargs): | |
| return True | |
| RETURN_TYPES = () | |
| FUNCTION = "bypass_nodes" | |
| CATEGORY = "moonpack/utils" | |
| OUTPUT_NODE = False | |
| # This is a virtual node - it doesn't do any actual processing | |
| # All the logic is handled on the frontend (JavaScript) | |
| def bypass_nodes(self, **kwargs): | |
| """ | |
| This node is a passthrough/virtual node. | |
| The actual bypassing logic is handled in the JavaScript frontend. | |
| """ | |
| # Return empty tuple as this is a control node with no outputs | |
| return () | |
| NODE_CLASS_MAPPINGS = { | |
| "FastNodeBypasser": FastNodeBypasser | |
| } | |
| NODE_DISPLAY_NAME_MAPPINGS = { | |
| "FastNodeBypasser": "Fast Node Bypasser" | |
| } | |