ComfyUI > Nodes > ComfyUI-Shinsplat > Variables (Shinsplat)

ComfyUI Node: Variables (Shinsplat)

Class Name

Variables (Shinsplat)

Category
advanced/Shinsplat
Author
Shinsplat (Account age: 1665days)
Extension
ComfyUI-Shinsplat
Latest Updated
2026-01-01
Github Stars
0.05K

How to Install ComfyUI-Shinsplat

Install this extension via the ComfyUI Manager by searching for ComfyUI-Shinsplat
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Shinsplat in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Variables (Shinsplat) Description

Facilitates dynamic text replacement in AI art by managing and swapping text variables.

Variables (Shinsplat):

The Variables (Shinsplat) node is designed to facilitate dynamic text replacement within your AI art projects. It allows you to define a set of variables and their corresponding values, which can then be used to replace placeholders in a given text input. This node is particularly useful for creating flexible and reusable text templates, where you can easily swap out specific words or phrases without manually editing the entire text. By using this node, you can streamline your workflow and ensure consistency across different text outputs. The main goal of the Variables (Shinsplat) node is to provide a simple yet powerful way to manage text variables, making it easier to generate varied and dynamic content.

Variables (Shinsplat) Input Parameters:

text

The text parameter is a required input that allows you to define a set of variables and their corresponding values in a string format. This input should be structured like a Python dictionary, where each key represents a variable name and each value represents the text that will replace the variable. The default value is a sample dictionary with two variables: "THAT": "some text here" and "THIS": "some other text". This parameter supports multiline input, but dynamic prompts are not enabled. Proper formatting is crucial, as missing commas or incorrect syntax will result in errors.

text_in

The text_in parameter is an optional input that accepts a string containing the text where variable placeholders will be replaced. This input should include placeholders in the format $VARIABLE_NAME, which will be replaced by the corresponding values defined in the text parameter. This parameter also supports multiline input and requires a forced input, meaning it must be provided for the node to function correctly. The text will be processed up to the first occurrence of the word "END", allowing you to control the portion of the text that undergoes variable replacement.

Variables (Shinsplat) Output Parameters:

STRING

The STRING output parameter provides the processed text with all variable placeholders replaced by their corresponding values. This output is crucial for generating the final text that incorporates the dynamic content defined by the variables. It allows you to seamlessly integrate the processed text into your AI art projects or other applications.

help

The help output parameter offers guidance and instructions on how to use the Variables (Shinsplat) node effectively. It includes information on the correct syntax for defining variables, examples of how to use placeholders in text, and tips for avoiding common errors. This output is designed to assist users in understanding and utilizing the node's capabilities to their fullest potential.

Variables (Shinsplat) Usage Tips:

  • Ensure that each variable definition in the text parameter is followed by a comma to avoid syntax errors.
  • Use uppercase variable names for better readability and to prevent conflicts with lowercase tokens during processing.

Variables (Shinsplat) Common Errors and Solutions:

SyntaxError: invalid syntax

  • Explanation: This error occurs when the text parameter is not formatted correctly as a Python dictionary.
  • Solution: Double-check the syntax of your variable definitions, ensuring each entry is separated by a comma and enclosed in curly braces.

RuntimeError: malformed node or string

  • Explanation: This error indicates that the node encountered an issue while processing the input text or variables.
  • Solution: Verify that all placeholders in the text_in parameter match the variable names defined in the text parameter, and ensure there are no typos or missing variables.

Variables (Shinsplat) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Shinsplat
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Variables (Shinsplat)