Impact Pack

2322
By Dr.Lt.Data
Updated 11 days ago
View on GitHub →See Common Issues →

This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler.

Available Nodes

ImpactStringSelector

ImpactStringSelector Node Documentation

Overview

The ImpactStringSelector node is a component of the ComfyUI Impact Pack, designed to facilitate string manipulation and selection within workflows. This node provides functionality to select and return specific portions of a string based on given criteria, making it a versatile tool for processing text data in various ComfyUI workflows.

Features

  • String Selection: Allows users to select specific lines or sections of a string by defining a selector.
  • Multiline Mode: Offers the ability to handle multiline text, with sections divided based on lines starting with a specified character (typically '#').

Inputs

  1. String Input: The node accepts a single string input, which can be a block of text containing multiple lines.

  2. Selector Input: An integer input that specifies which line or section of the string input should be selected.

  3. Multiline Mode (Optional): A boolean setting that, when enabled, treats the input as multiline and divides it based on specified criteria.

Outputs

  • Selected String: The output is the specific portion of the input string selected based on the provided selector input. If multiline mode is enabled, it returns the section identified by the selector.

Usage in ComfyUI Workflows

The ImpactStringSelector node can be integrated into ComfyUI workflows where text processing is required. It is particularly useful in scenarios involving:

  • Dynamic Prompting: Selecting certain prompts or settings from a list.
  • Configuration Management: Extracting and applying specific parts of configuration files or settings.
  • Conditional Logic: Using the selected string as a variable in further nodes to dictate the flow of a workflow, based on textual conditions.

Special Features and Considerations

  • Wrapping Selector: If the selector specifies a line number beyond the total number of lines or sections available, the node wraps around to count from the beginning, ensuring that a valid output is always produced.

  • Flexibility with Modes: The ability to toggle multiline mode allows users to adapt the node's functionality according to the structure of their text data.

In summary, the ImpactStringSelector node is a powerful tool for managing and manipulating strings within ComfyUI workflows, catering to diverse textual processing needs with its versatile set of features.