Inject up to 6 reference images into conditioning for FLUX.2 (and other edit models consuming reference_latents) in a single node. Each image has its own strength (0 = skip), built-in VAE encode, all inputs optional so one static workflow covers 0–6 references without bypass or rewiring. Independent implementation based on ComfyUI's public native ReferenceLatent mechanism.
13 lines
375 B
JavaScript
13 lines
375 B
JavaScript
import { app } from "../../scripts/app.js";
|
|
|
|
// 给 Multi Reference Latent 节点一个固定配色,方便在画布上认出来。
|
|
app.registerExtension({
|
|
name: "comfyui.multi_referencelatent",
|
|
nodeCreated(node) {
|
|
if (node.comfyClass === "MultiReferenceLatent") {
|
|
node.color = "#2a3a4a";
|
|
node.bgcolor = "#1f2a35";
|
|
}
|
|
},
|
|
});
|