Projectorz String To Int
The little string-to-number adapter every Projectorz workflow needs
- INT
There's an unavoidable quirk to the whole Stable Projectorz Bridge: every setting that arrives from the app is a string. steps, width, height, seed, batch_size - they all ride in as text because that's how they come out of the A1111-style JSON the bridge mimics. ComfyUI's widgets, meanwhile, mostly want real integers. ProjectorzStringToInt is the 3-line adapter that bridges that gap: string in, int() out.
It does exactly one thing - Python's int(string) - and it's got one input (string, default empty) and one output (INT). You drop one in wherever a ProjectorzParameter or ProjectorzControlnetParameter node is handing you something numeric. The sample workflow shows the canonical pattern: width and height parameters each flow through a ProjectorzStringToInt on their way to EmptyLatentImage.
When you need it, and when you don't
The rule of thumb is boring and useful: if the destination wants a number, use this node. steps, cfg_scale (well, that one's a float - see ProjectorzStringToFloat), width, height, seed, batch_size, n_iter, and the index-based ControlNet parameters all count. If the destination accepts text - prompt, negative_prompt, sampler_name, ControlNet model/module - feed the string straight through and skip this node entirely.
Caveats
It's a naked int() cast, so it will happily crash on malformed input. In practice that almost never happens, because the value is autofilled from Projectorz's own UI widgets, which are already numeric. But if Projectorz sends something like "auto" or an empty string, the node throws and your run dies mid-flight - worth knowing when you're debugging, because the error traceback leads back here and it's easy to blame the wrong node.
Install
Same pack, same drill - 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. This is a throwaway utility node; if you've used any string→number converter in ComfyUI before, you already know exactly how it behaves. It's not glamorous, but every Projectorz workflow that respects its step count or resolution on the way out of the app needs one.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |