ComfyUI Node: del prompt

Class Name

text-util-prompt-del

Category
Ymc Suite/text-util
Author
YMC (Account age: 2735days)
Extension
ymc-node-suite-comfyui
Latest Updated
2024-05-22
Github Stars
0.02K

How to Install ymc-node-suite-comfyui

Install this extension via the ComfyUI Manager by searching for ymc-node-suite-comfyui
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ymc-node-suite-comfyui 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

del prompt Description

Efficiently manage and refine text prompts by searching for and deleting specific substrings.

del prompt:

The text-util-prompt-del node is designed to help you manage and refine your text prompts by allowing you to search for specific substrings and delete them based on your preferences. This node is particularly useful for AI artists who need to clean up or modify text prompts efficiently. By specifying the text to search for and the text to delete, you can streamline your text processing tasks, ensuring that your prompts are precise and free from unwanted elements. The node offers a simple yet powerful way to manipulate text, making it an essential tool for anyone working with text-based AI models.

del prompt Input Parameters:

This parameter allows you to specify the substring you want to search for within your text prompt. It is a string input and can be left empty if you do not wish to perform a search. The function of this parameter is to identify the part of the text that you may want to delete or keep based on the action specified. There are no minimum or maximum values for this parameter, and it defaults to an empty string.

todel

This parameter specifies the substring that you want to delete from the text prompt. It is also a string input and can be left empty if you do not wish to delete any specific text. The function of this parameter is to identify the part of the text that should be removed if the action is set to "yes". There are no minimum or maximum values for this parameter, and it defaults to an empty string.

action

This parameter determines whether the deletion action should be performed. It accepts two options: "yes" and "no". If set to "yes", the node will delete the specified substring (todel) from the text prompt. If set to "no", the node will return the original text prompt without any modifications. This parameter is crucial for controlling the behavior of the node and defaults to "yes".

del prompt Output Parameters:

STRING

The output parameter is a string that represents the modified text prompt. If the action is set to "yes", the output will be the text prompt with the specified substring (todel) removed. If the action is set to "no", the output will be the original text prompt without any changes. This output is essential for further processing or use in other nodes.

del prompt Usage Tips:

  • Use the search parameter to identify specific parts of your text prompt that you want to clean up or modify.
  • Set the action parameter to "yes" to enable the deletion of the specified substring, or "no" to keep the original text prompt intact.
  • Combine this node with other text-util nodes to create a comprehensive text processing pipeline.

del prompt Common Errors and Solutions:

"Cannot execute because a node is missing the class_type property."

  • Explanation: This error occurs when the node is not properly defined or is missing essential properties.
  • Solution: Ensure that the node is correctly implemented and that all required properties are specified.

"Cannot execute because node {class_type} does not exist."

  • Explanation: This error indicates that the specified node class type is not found in the system.
  • Solution: Verify that the node class type is correctly defined and that it exists in the node mappings.

"Prompt has no outputs"

  • Explanation: This error occurs when the prompt does not produce any output.
  • Solution: Ensure that the node is configured correctly and that it is set to produce an output.

del prompt Related Nodes

Go back to the extension to check out more related nodes.
ymc-node-suite-comfyui
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.