Nodes/NKD Klein Tools/😺NKD Klein Reference Control
ComfyUI Node

😺NKD Klein Reference Control

EXPERIMENTAL — full control of ONE reference image in a single node. Sets how STRONG it is (with an optional per-step curve) and, if you connect a mask, confines WHERE it applies on the canvas. Leave the mask unconnected to use it purely as a strength control. Chain one per reference; put it on the model line between Presampling and your sampler.

By Nekodificador·Created 4 months ago·Updated 27 days ago· 71
😺NKD Klein Reference Control
  • model
  • mask
  • latent
  • model
  • latent
reference_index1
weight1.00
region_weight1.00
outside_suppression1.00
region_hardness0.00
schedule
Category😺NKD Nodes/Klein

Inputs (9)

NameTypeDefaultDescription
modelMODEL
reference_indexINT10–7Which reference this node controls. 0 = the main reference (ref_0), 1 = ref_1, … in the order added.
weightFLOAT1.000–2Overall strength of this reference. 1.0 = no change, below 1 dilutes (0 = removed), above 1 reinforces (up to 2). A connected curve multiplies this per step.
region_weightFLOAT1.000–4(Regional) how strongly the reference shows up INSIDE the zone. 1.0 = normal, up to 4 reinforces. Only used with a mask.
outside_suppressionFLOAT1.000–1(Regional) how much the reference is held back OUTSIDE the zone. 1.0 = only inside the zone; 0.0 = no restriction. Only used with a mask.
region_hardnessFLOAT0.000–1(Regional) crispness of the zone edge. 0.0 = soft falloff; 1.0 = hard binary edge (tightest containment). Raise it if the reference bleeds outside the mask. Only used with a mask.
scheduleoptFLOATOptional per-step curve in [0,1] (e.g. the FLOAT output of NKD Sigmas Curve) that MULTIPLIES the strength across denoise steps. Leave unconnected for a flat strength.
maskoptMASKOptional zone to confine the reference to. Connect it to turn on regional control; leave it unconnected for a pure strength node.
latentoptLATENTThe canvas latent from Presampling — needed only when a mask is connected, to map it onto the token grid. Chain it from another Reference Control's latent output.

Outputs (2)

NameTypeDescription
modelMODEL
latentLATENTThe latent passed through — chain into the next Reference Control to drive several references.