Each WP node's fields live once in src/manager/docs/node-fields.ts. The docs pages draw them with DocFields, and pnpm docs:help writes them into docs/help/WP_*.md. Tests fail when a node socket has no field or a field names a socket that is gone (tests/fixtures/node-sockets.json, written by scripts/dump_node_sockets.py).
963 B
963 B
WP Var → Float
Reads a $variable from the upstream Context and emits a FLOAT.
On the node
- context (in)
context: The Context that holds the $variable. - var_name
variable: The $variable to read. The list shows every variable the wired Context has. - index
INT: Which number to take when there are several: 0 is the first, 1 the second. Usually 0. - default
FLOAT: Used when the variable is missing, has no number, or has fewer numbers than the index. The node never stops the run; it uses this instead. - value (out)
FLOAT: The number, for any FLOAT input: CFG, denoise, a LoRA strength and so on.
Parsing rule
Finds the numbers in the value, in order, and returns the one at index (0 is the first). Whole numbers count ("1920" → 1920.0), and so does scientific notation.
"strength: 0.85, scale: 1.5"index1→1.5"3.2e-4"index0→0.00032