Catch & Edit Text
5.0
0 reviewsDescription
Usecase for this node is the loss of control I found when having my text prompts created by either an AI or a random generator. Pythongosssss has a great node that shows you the output of the text, called '[Show Text](https://github.com/pythongosssss/ComfyUI-Custom-Scripts?tab=readme-ov-file#show-text)', which at least shows you the prompt being generated. However, I often wanted to tweak the prompt to my personal likings, or simply because the output wasn't to my liking. But when you want to change that prompt, you have to create a new string of nodes and mix it with a switch to either take the generated prompt or your custom text. And there's no link between the generated prompt and your edits.
Besides that, I was also worried I might run through my rate limit when calling an external AI, while the output of the generated prompt didnt even differ that much between the runs.
*Enter Catch & Edit Text*; a node that Catches and shows text being created by a previous node and enables editing the text for subsequent run. Using the edited text also mutes the input node, saving processing time and possibly budget on rated calls. The example below shows the workings of the node. Of course, the current output to the 'Show Text' node is useless and just for reference.
------------------
- NOTE: ONLY connect to the `INPUT_TEXT` below; <br>Connecting to the textbox turns this node effectively into a a/b switch instead of an editor.
- Output is controlled by `action` switch.
- `Use Input`: Outputs the connected text, updates this view.
- `Use Edit_Mute_Input`: Outputs the (edited) text from current node, mutes input node.
------------------
Discussion
(No comments yet)
Loading...
Reviews
No reviews yet
Versions (1)
- latest (5 months ago)
Node Details
Primitive Nodes (2)
CatchEditTextNode (1)
LayerUtility: Gemini (1)
Custom Nodes (1)
- ShowText|pysssss (1)
Model Details
Checkpoints (0)
LoRAs (0)