ScoreConverterNode
The adapter that makes scores talk to anything
- score
- INT
- FLOAT
- STRING
Scores in ComfyUI are just numbers, but not every node agrees on what kind of number it wants. Some expect an INT, some a FLOAT, some a STRING for logging or display. ScoreConverterNode is the adapter in the middle: it takes a score in the pack's custom SCORE type and hands you the same value as an INT, a FLOAT, and a STRING simultaneously, so whatever you're wiring into next can pick the type it actually needs.
It exists because this pack's scoring pipeline produces a SCORE that isn't one of the plain ComfyUI types. The moment you want to feed that score into a filter, a display text node, a JSON writer, or any node built by a different pack, you hit a type mismatch and the wire snaps. This node is the translation layer. It's also handy as a debugging view - a string representation of the score you can read at a glance.
How it works
Zero magic. It takes the SCORE in, converts it to the three common representations, and emits all three at once:
- score (SCORE, required) - the input value, wired from whichever LexTools scoring node produced it.
- show_on_node (INT, optional, default 0) - set to 1 to print the converted values on the node body, which is a nice way to see what's happening without adding a text viewer.
Outputs:
- INT - the score rounded/truncated to an integer. For feeding threshold filters that expect whole numbers.
- FLOAT - the score as a float. The one you'll use most.
- STRING - the score as text, for logging, file writing, or display.
Note the node is flagged as an output node in the schema, so it behaves like a terminal - ComfyUI treats it as a place a branch ends, which matches how you'd normally use it (as the last hop before a display or file write).
When you actually need it
Honestly, it's a thin utility and you'll reach for it only when a type mismatch bites you. The realistic case: your ImageQualityScoreNode gives you a big multiply-by-100000 integer-ish score, and you want to log it as a string to the ImageRankingNode's JSON, while also feeding the raw float into a threshold check. Rather than fussing with primitive conversion nodes, one ScoreConverterNode gives you all three versions from a single wire. It's not exciting - it's the kind of node you forget exists until the graph turns red because a FLOAT went into an INT slot.
Install and notes
Install the pack once: ComfyUI Manager → search "ComfyUI-LexTools", or git clone https://github.com/SOELexicon/ComfyUI-LexTools into custom_nodes, restart. No models, no downloads - pure type plumbing.
One small warning: because the SCORE type is custom to this pack, ScoreConverterNode only accepts input from LexTools' own scoring nodes. If your score comes from another pack, convert it to FLOAT at the source and skip this node entirely - it won't take the foreign type.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| score | SCORE | 0 | — |
| show_on_nodeopt | INT | 0 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |
| FLOAT | FLOAT | — |
| STRING | STRING | — |