Nodes/Stable Projectorz Bridge/Projectorz String To Float
ComfyUI Node

Projectorz String To Float

When Projectorz hands you a decimal, this node hands it to the sampler

By tianlang0704·Created 2 years ago·Updated 2 years ago· 47
Projectorz String To Float
    • FLOAT
    string

    ProjectorzStringToFloat is the sibling of ProjectorzStringToInt, and it exists for the same reason: everything Stable Projectorz sends through this bridge is a string, and ComfyUI widgets want numbers. This one handles the decimals - cfg_scale, ControlNet weight, guidance_start/guidance_end, denoising_strength, hr_scale. One input, one output: string in, float() out.

    It's a two-line utility node, so there's not much mechanism to explain. The value you feed it typically comes from a ProjectorzParameter (for cfg_scale, denoising_strength, and the highres-fix floats) or a ProjectorzControlnetParameter (for weight, threshold_a, threshold_b, and the guidance window). Since those parameter nodes are autofilled from Projectorz's UI at runtime, this converter is how your KSampler's cfg, or a ControlNetApply's strength, tracks the app's sliders live instead of being hardcoded.

    Where it belongs in the graph

    The pattern you'll see in real workflows: ProjectorzControlnetParameter with name = "weight"ProjectorzStringToFloatControlNetApply strength. Same shape for cfg_scale into a KSampler. When people say "I changed the ControlNet strength in Projectorz and nothing happened," nine times out of ten the answer is that they hardcoded the strength widget in ComfyUI and never ran it through this node - the parameter was read, but the number never made it to the sampler.

    The sharp edge

    Like its integer sibling, it's a naked float() cast, so garbage in means a hard crash. If Projectorz sends an empty string or something non-numeric, the node throws and the whole run dies. That's genuinely rare given the values come from Projectorz's own numeric UI widgets, but it's the first thing to check when a bridge workflow fails with an obscure traceback that seems to point at nothing. Don't reach for it for integers - width, steps, seed want ProjectorzStringToInt - and don't use it for text, because text wants the raw string.

    Install

    Same pack, same drill as every node here. ComfyUI Manager (search "Stable Projectorz Bridge") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/tianlang0704/ComfyUI-StableProjectorzBridge
    

    Restart. No models, no extra dependencies. It's a boring little adapter, but it's the difference between "my ControlNet weight follows the Projectorz slider" and "I re-typed a strength value into ComfyUI for the fortieth time."

    CategoryProjectorz

    Inputs (1)

    NameTypeDefaultDescription
    stringSTRING

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT