2025-07-30 11:58:08 +08:00
2025-07-18 12:04:24 +08:00
2025-07-30 11:50:21 +08:00
2025-07-12 11:45:13 +08:00
2025-07-30 11:48:28 +08:00
2025-07-12 14:59:35 +08:00
2025-07-30 11:53:18 +08:00
2025-07-30 11:58:08 +08:00

ComfyUI-WBLESS

ComfyUI custom node package. This custom node features multiple practical functions, including global variables, flow control, obtaining image or mask dimensions, and Dominant Axis Scale.

Get Started

Manual

  • Clone this repo into : custom_nodes
    cd ComfyUI/custom_nodes
    git clone https://github.com/LaoMaoBoss/ComfyUI-WBLESS.git
    
  • Start up ComfyUI.

NOTICE

  • V2.1.2 Import the cozy_comfyui module and fix the issue where users cannot import the cozy_comfyui module.
  • V2.1.1 Fixed the Get Mask Size node returning wrong dimensions in certain scenarios.
  • V2.1.0 Updated the Dominant Axis Scale, Get Image Size, and Get Mask Size nodes.
  • V2.0.0 is released. This is the first public version. Version 1.0 is an internal test version and will not be made public.

The Nodes

Set Global Variable

The Set Global Variable node allows you to store your data in variables.

See More Information
  • The Input and Output nodes form a direct pipeline for better integration within workflows.
  • The variable data is used for inputting variable values.
  • Scope is used to set the order in which variables are obtained. You just need to connect them in sequence one after another.
  • variable_name Here you can set the name of your variable. image

Get Global Variable

The Get Global Variable node can retrieve data stored in variables.

See More Information
  • The Input and Output nodes form a direct pipeline for better integration within workflows.
  • variable data is used for outputting the variable's value.
  • Scope is used to set the order in which variables are obtained. You just need to connect them in sequence one after another.
  • variable_name Here you can specify the variable you want to retrieve. image

Inversed Switch

Used to control the direction of the workflow.

See More Information
  • Connect the main workflow to the Input interface, then connect the Output to different branch workflows. By controlling the path value of the node, you can determine which branch the workflow will take.
  • This node needs to be used in conjunction with Switch.
  • The core logic of this node draws inspiration from ComfyUI-Impact-Pack. We would like to express our gratitude to the author of ComfyUI-Impact-Pack here. workflow

Switch

Select and retrieve data from different processes.

See More Information
  • This node is usually used in conjunction with the Inversed Switch node; of course, you can also use it independently.
  • The Input interface connects to different branch workflows, while the Output interface will output data from the corresponding workflow based on the value of path. image

Dominant Axis Scale

Smart scale input group A relative to input group B, using its longest side as the scaling axis.

See More Information
  • Height a, Width a — these are the input dimensions you need to scale.
  • Height b, Width b — these reference dimensions serve as the scaling baseline, which you can conceptualize as canvas dimensions.
  • ratio — Input your scaling factor here.
  • The output Width, Height, and scale_ratio govern different output formats. workflow (1)

Get Image Size

Get Image Dimensions.

See More Information image

Get Mask Size

Get Mask Dimensions.

See More Information image
S
Description
No description provided
Readme MIT
960 KiB
Languages
Python 92.5%
JavaScript 7.5%