Nodes/BV Nodes/πŸŒ€ BV Vector to String
ComfyUI Node

πŸŒ€ BV Vector to String

Turn a block-weight vector into a copy-pasteable string

By BlackVortexAIΒ·Created 2 years agoΒ·Updated 11 months agoΒ· 3
πŸŒ€ BV Vector to String
  • vector
  • STRING_RESULT
β—„delimiter, β–Ί
β—„include_bracketstrueβ–Ί

ComfyUI's block-weight tooling has a split personality: some nodes take a list of floats, others take a text field. BV Vector to String bridges the two. Feed it a vector, and it serializes the values into a single string - your choice of delimiter, brackets on or off - ready to paste into a text input, log to console, or hand to any node that reads block weights as text.

This is the export half of the workflow. You build a vector with the constructor and edit nodes, then convert it to a string so you can actually share the preset. Block-weight strings are the currency of the community - people post their tuned presets as comma-separated numbers, and this node is how you mint one of those from a vector you've fiddled into shape. The reverse direction (parsing a string back into a list) isn't this node's job, so keep both sides of the conversion around.

Inputs

  • vector (required) - the list of floats to serialize.
  • delimiter (default ", ") - what goes between values. The default comma-space matches how block-weight presets are usually written and read.
  • include_brackets (default true) - wrap the result in square brackets or not. Bracketed ([1.0, 0.5, ...]) looks like a Python list and matches some consumers; unbracketed (1.0, 0.5, ...) is the plainer "just the numbers" form.

Output

  • STRING_RESULT (STRING) - the serialized vector.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/BlackVortexAI/ComfyUI-BVortexNodes.git

or ComfyUI Manager β†’ "BV Nodes", then restart. No dependencies, no models.

Notes

There's no rounding control, so you get whatever precision is in the vector - long floats produce long strings, and if that's cluttering things, fix the values upstream. Also worth remembering: this only goes list-to-string. If a workflow hands you a string preset you want to edit numerically, you'll need to convert it back into a list first, which is a different node's problem. For turning your tuned vector into a shareable line of text, though, this is exactly the tool.

CategoryπŸŒ€ BVortex Nodes/Vectors

Inputs (3)

NameTypeDefaultDescription
vectorLISTβ€”
delimiterSTRING, β€”
include_bracketsBOOLEANtrueβ€”

Outputs (1)

NameTypeDescription
STRING_RESULTSTRINGβ€”