ComfyUI Node

Set Dict Float

Tuck a float into a ComfyUI dict

By antrobot1234·Created 3 years ago·Updated about a year ago· 28
Set Dict Float
  • DICT
  • DICT
key
FLOAT0.00

The knobs that make or break an image are mostly floats: CFG scale, denoise strength, LoRA weight, ControlNet strength, sampler shift. Set Dict Float is the node that grabs one of those decimals and parks it in a DICT bundle, so it can travel across the graph on one shared wire instead of a long dedicated one, and get pulled back out later by name with a Get Dict.

It's part of the antrobots dict family, and the family's whole job is bundling: pack a bunch of values into a single keyed container and route that around rather than dragging individual wires everywhere. Think of it as the same graph-tidying instinct behind rgthree's Context nodes, only here the slots are named by you and open-ended instead of a fixed typed set. Set Dict Float is the flavor with the value pinned to a decimal number.

Why the typed one over plain Set Dict

The base Set Dict takes any type and would swallow a float without complaint. The typed variant adds a float widget right on the node - handy when you want to dial a value inline rather than wire in a primitive - and it pairs with a float-typed Get Dict that confirms the value is actually a number and gives you a default if it isn't. Set with a type, fetch the same type, no nasty coercion surprises.

How it works

A dict here is a plain Python dictionary carried on a custom DICT wire. Hand the node a key and a FLOAT and it opens a new one-key bundle. Hand it a key, a FLOAT, and an existing DICT and it appends to the bundle and passes the whole lot forward. You chain them - output into the next node's DICT input - to build the bundle up one value at a time.

The inputs and outputs that matter

  • key (string) - the label you'll read this number by later. Get Dict matches it exactly, character for character.
  • FLOAT - the decimal value, default 0, adjustable in steps of 0.01. Type it inline or wire it in.
  • DICT (optional) - a bundle to append to; leave it empty to start a new one.

Output is a single DICT, bound for the next Set Dict or a Get Dict.

Installing it

You install the whole pack. Via ComfyUI Manager: Install Custom Nodes, search antrobots ComfyUI Nodepack, install, restart. Manual route:

cd ComfyUI/custom_nodes
git clone https://github.com/antrobot1234/antrobots-comfyUI-nodepack

then restart. No model files, no chunky dependencies - it's straight Python, so the install is refreshingly quiet compared to most packs.

Common issues

A float-specific heads-up: the widget steps in 0.01, so if you need finer precision than two decimal places, nudging the slider won't get you there - type the exact value in or wire it from a node that can hold it. And don't assume a value bundled here comes back bit-identical; treat it as the number you set, not a guarantee of infinite precision.

The rest is the family's usual stuff. Keys match as exact strings, so a mismatch between this node and the Get Dict silently returns the default instead of erroring - check spelling and capitals first when a value seems wrong. The DICT type is antrobots-only and has to be unpacked through a Get Dict, never fed into a stock node. And since this is a small single-maintainer pack with essentially no community discussion to search through, the README's ask to open a GitHub issue is your realistic support channel.

Categoryantrobots-ComfyUI-nodepack/dicts/set

Inputs (3)

NameTypeDefaultDescription
keySTRING
FLOATFLOAT0.00
DICToptDICT

Outputs (1)

NameTypeDescription
DICTDICT