🔶 Convert to Number String Float
One input, eight typed outputs
- source
- FLOAT
- INT
- NUMBER
- ACTIV_FRAME
- REPEAT
- RESTART(reset=1)
- Bool
- STRING
This is the glue node that makes the rest of the pack's frame-driven system work. Feed it basically any number-shaped source, and it fans out into eight differently typed outputs at once - including the two custom types (ACTIV_FRAME and RESTART) that show up as required inputs on a good chunk of the other Chaosaiart nodes. If you've read another article in this set and wondered where activ_frame or restart actually comes from, this is almost always the answer: somewhere upstream, a plain number goes into a convert node.
The practical pattern: hook a queue counter or a primitive number widget into source, and this node hands you an ACTIV_FRAME for the checkpoint/prompt/ControlNet-by-frame nodes, a RESTART for the switch and denoise nodes that need a reset signal, plus a plain INT, FLOAT, NUMBER, Bool, STRING, and REPEAT for anything else in your graph that just wants an ordinary typed number. You don't need all eight every time - just wire whichever output the downstream node actually asks for.
Inputs and outputs
source- required, wildcard*type. In practice this is almost always fed by a plain number, but the node accepts anything and does its best to interpret it.- Outputs, all from that one input:
FLOAT,INT,NUMBER,ACTIV_FRAME,REPEAT,RESTART(reset=1),Bool,STRING. The naming on the restart output -RESTART(reset=1)- hints that the reset signal is tied to the source value hitting 1; if you're using this to drive arestartinput elsewhere in the pack, that's the behavior to expect rather than a generic bang/trigger.
Every output is a separate wire - you're not choosing one, you get all eight simultaneously and just connect the ones you need.
Installing it
ComfyUI Manager: Install via Git URL → https://github.com/chaosaiart/Chaosaiart-Nodes, the exact method the README documents. A title search for "Chaosaiart" should also find it.
Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/chaosaiart/Chaosaiart-Nodes
Linux (activate your venv first, if you use one):
pip install opencv-python
pip install tqdm
Windows: run the bundled Install_windows script. Restart ComfyUI afterward. No models needed - this is pure logic.
Common issues
Feeding it something that isn't a number. Since source is wildcard-typed, ComfyUI won't stop you from wiring in an image or a string that isn't numeric - but the conversion is going to fail or produce nonsense downstream. Trace back to a plain primitive or counter node if outputs look wrong.
Not realizing RESTART only fires on a specific value. The output's own name - RESTART(reset=1) - is the tell that this isn't a generic trigger; if your switch or denoise node isn't resetting when you expect, check what value is actually hitting source at that point in your queue.
These custom types only talk to other Chaosaiart nodes. ACTIV_FRAME and RESTART won't plug into a standard ComfyUI INT/FLOAT input or another pack's nodes - they're specific to this pack's own frame-plumbing system.
Whole-pack import failures. All Chaosaiart nodes share one Python module; a broken opencv-python/tqdm install takes the entire pack offline, this node included. Check your ComfyUI startup log for an import error first.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| source | * | — |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |
| INT | INT | — |
| NUMBER | NUMBER | — |
| ACTIV_FRAME | ACTIV_FRAME | — |
| REPEAT | REPEAT | — |
| RESTART(reset=1) | RESTART | — |
| Bool | Bool | — |
| STRING | STRING | — |