ComfyUI  >  Nodes  >  WAS Node Suite >  Text Shuffle

ComfyUI Node: Text Shuffle

Class Name

Text Shuffle

Category
WAS Suite/Text/Operations
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for  WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text Shuffle Description

Randomly rearrange text segments based on separator for varied outputs with reproducible results.

Text Shuffle:

The Text Shuffle node is designed to randomly rearrange the segments of a given text based on a specified separator. This node is particularly useful for creating varied and unique text outputs from a single input, which can be beneficial in creative writing, generating prompts, or any scenario where text variation is desired. By leveraging a seed value, the shuffling process can be made reproducible, ensuring that the same input and seed will always produce the same shuffled output. This feature is especially valuable for maintaining consistency in experiments or creative projects.

Text Shuffle Input Parameters:

text

This parameter represents the input text that you want to shuffle. The text will be split into segments based on the specified separator, and these segments will be randomly rearranged. The type of this parameter is STRING, and it is required for the node to function.

separator

The separator parameter defines the character or string used to split the input text into segments. By default, this is set to a comma (,), but you can specify any string that suits your needs. This parameter is of type STRING and is not multiline.

seed

The seed parameter is an integer value used to initialize the random number generator. This ensures that the shuffling process can be reproduced if the same seed is used again. The default value is 0, and it can range from 0 to 0xffffffffffffffff.

Text Shuffle Output Parameters:

text

The output is the shuffled text, where the segments of the input text have been rearranged based on the specified separator and seed. This output is of type STRING.

Text Shuffle Usage Tips:

  • To ensure reproducibility in your text shuffling, always use the same seed value for the same input text.
  • Experiment with different separators to see how the text segments are affected. For example, using spaces or newline characters as separators can produce different shuffling results.
  • Use this node to generate unique variations of prompts or creative text snippets, which can be particularly useful in AI art and writing projects.

Text Shuffle Common Errors and Solutions:

"Invalid separator"

  • Explanation: The separator provided is not valid or is causing issues in splitting the text.
  • Solution: Ensure that the separator is a valid string and is present in the input text. Try using a different separator if the issue persists.

"Seed value out of range"

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xffffffffffffffff.

"Empty input text"

  • Explanation: The input text provided is empty or null.
  • Solution: Provide a valid non-empty string as the input text to be shuffled.

Text Shuffle Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.