KJNodes/masking/conditioninggenerated

Conditioning Multi Combine(ConditioningMultiCombine)

This node technically supports two different merging operation modes: `combine` and `concat`.

Conditioning Multi Combine

conditioning_1
conditioning_2
combined
inputcount
inputcount
2
operation
combine
KJNodes

The Conditioning Multi Combine node technically supports two different merging operation modes: combine (merge) and concat (concatenate).

Conditioning Multi Combine is a node used for processing and integrating multiple conditioning inputs. Its core function is to merge two or more independent text prompts or image guidance information into a unified output, providing comprehensive conditional control for subsequent image generation steps.

Node Functionality

This node technically supports two different merging operation modes: combine (merge) and concat (concatenate). It dynamically adjusts the number of input ports (controlled by the inputcount parameter, ranging from 2 to 20) to receive multiple CONDITIONING type data and utilizes ComfyUI's built-in ConditioningCombine or ConditioningConcat nodes to complete the final fusion processing.

Node Parameter Description - Conditioning Multi Combine

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
conditioning_1CONDITIONINGYes--conditioning_1 (Input Parameter): Connect the first conditioning input data, typically the output from nodes like CLIP text encoders.
conditioning_2CONDITIONINGYes--conditioning_2 (Input Parameter): Connect the second conditioning input data, to be merged with the first condition.

Note: Additional conditioning input ports (conditioning_3 .. conditioning_n) appear dynamically based on the value of the inputcount widget.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
operationCOMBOYescombine"combine", "concat"operation (Input Parameter): Select the method for merging multiple conditioning data. Options are "combine" (merge, typically weighted average) or "concat" (concatenate, sequential splicing).
inputcountINTYes22 - 20 (Step: 1)inputcount (Input Widget): Sets the number of conditioning input ports. The same value is also available as an output.

Output

Parameter NameData TypeDescription
combinedCONDITIONINGcombined (Output Parameter): Outputs the merged comprehensive conditioning data.
inputcountINTinputcount (Output Parameter): Echoes the number of input conditions, which can be used as a reference for subsequent processes.

Usage Scenarios

In practical workflows, this node can be used when you need the effects of multiple different prompts (e.g., one describing the subject, another describing the style) to simultaneously influence image generation. For example, you could first process "a cat" and "Van Gogh style" into conditioning data using CLIP text encoder nodes separately, then merge them using this node to generate an image of a cat with a specific artistic style.

Notes

Please note that the multiple input conditioning data should have compatible dimensions, and the specific effect of the merge operation (such as weight superposition or sequential connection) depends on the selected operation mode. The number of input conditions should not exceed the upper limit of 20.

The Conditioning Multi Combine node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…