← See All Custom Node Packs

Comfyroll Studio

1275
By Suzie1
Updated almost 2 years ago
View on GitHub →See Common Issues →

Run ComfyUI Easily with InstaSD

Skip the complex setup and run ComfyUI online. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

175 custom nodes for artists, designers and animators.

Available Nodes

CR Prompt List

CR Prompt List Node Documentation

Overview

The CR Prompt List node is a part of the Comfyroll Studio custom nodes for ComfyUI, designed to help users handle and manipulate text data within their workflows. Specifically, this node allows users to create a list of prompts by combining additional text with each line of a multiline input. It is highly useful for generating structured text outputs from large blocks of text.

Functionality

The CR Prompt List node generates a list of prompts by taking a multiline text input and optionally appending and prepending texts to each line. This feature can be essential in workflows that require structured text inputs, where specific prefixes or suffixes need to be consistently applied to a dataset or text batch.

Inputs

The node accepts the following inputs:

  • Prepend Text: A single-line string that will be prepended to each line of the multiline text. This can be used to add a fixed prefix to each entry in the prompt list.

  • Multiline Text: A block of text with multiple lines. Each line will be treated as a separate entry for the list, and text can be batch processed using this input.

  • Append Text: A single-line string that will be appended to each line of the multiline text. This feature enables adding a consistent suffix or closure to each prompt.

  • Start Index: An integer that defines the starting line number within the multiline text from which the list processing should begin.

  • Max Rows: An integer specifying the maximum number of lines to be processed from the starting index in the multiline text.

Outputs

The CR Prompt List node produces the following outputs:

  • Prompt List: A list of strings where each item is a processed line from the multiline text with the prepend and append texts added. This list can be directly used downstream in a workflow for further processing or visualization.

  • Body Text: The list of the original lines from the multiline text without the prepend and append transformation. This is useful for retaining the unaltered form of the text.

  • Show Help: A URL link to the comprehensive documentation hosted on GitHub, providing further help and guidance on using the node effectively.

Usage in ComfyUI Workflows

The CR Prompt List can integrate into ComfyUI workflows by serving as an essential node in tasks requiring the generation or transformation of text data. It is especially beneficial in scenarios where consistent transformation on a list of text inputs is necessary, such as NLP tasks, generating datasets for training models, automating repetitive text additions in a batch process, or preparing textual prompts for Stable Diffusion tasks.

Example Use Cases

  • Data Preprocessing: When preparing text data for NLP tasks, this node can be used to process large text datasets, adding required context or identifiers uniformly across entries.

  • Prompt Generation: For artists or designers using text-based prompts in their creative process, this node aids in creating curated prompts by appending styles or themes to each line of text, expanding creative possibility suites.

Special Features and Considerations

  • Flexibility: The node allows users to choose how much of the text to process through Start Index and Max Rows, providing flexibility in managing large text inputs.

  • Batch Processing: Efficiently handles multiline text, making it optimal for large datasets or heavy processing tasks.

  • Ease of Integration: With intuitive inputs and outputs, it is designed to seamlessly integrate into existing ComfyUI workflows, minimizing user setup and configuration time.

For more information and instructional materials on how to maximize the utility of the CR Prompt List node, it is recommended to visit the ComfyUI Comfyroll CustomNodes Wiki.

Want to try Comfyroll Studio without installing anything? Run ComfyUI online on InstaSD's cloud GPUs — no setup required.