ComfyUI  >  Nodes  >  ComfyUI-FrameFX >  Prompt Stack Manager

ComfyUI Node: Prompt Stack Manager

Class Name

PromptStackManager

Category
Prompt Management
Author
mgfxer (Account age: 32 days)
Extension
ComfyUI-FrameFX
Latest Updated
7/20/2024
Github Stars
0.0K

How to Install ComfyUI-FrameFX

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

Prompt Stack Manager Description

Manage sequence of prompts for animation workflows, automating transitions based on frame count for AI artists.

Prompt Stack Manager:

The PromptStackManager node is designed to manage a sequence of prompts for animation workflows, allowing you to cycle through different prompts based on a frame count derived from a seed input. This node is particularly useful for AI artists who need to automate the transition between various prompts in a structured manner. By organizing prompts in a stack and determining the current and previous prompts based on the frame count, it ensures a smooth and predictable flow of prompts, enhancing the creative process in animation projects.

Prompt Stack Manager Input Parameters:

prompt_stack

This parameter accepts a multiline string where each line represents a different prompt. The prompts are cycled through based on the frame count. This allows you to define a sequence of prompts that will be used in your animation. The default value is "Prompt 1\nPrompt 2\nPrompt 3", and it does not support dynamic prompts.

frames_per_prompt

This integer parameter specifies the number of frames each prompt should be displayed for before moving to the next prompt. It controls the duration of each prompt in the sequence. The default value is 1, with a minimum of 1 and a maximum of 1000, allowing for fine-tuned control over the prompt transitions.

seed

The seed is an integer that influences the starting point of the frame count, ensuring that the prompt sequence can be consistently reproduced. It helps in generating a predictable sequence of prompts based on the initial seed value. The default value is 0, with a range from 0 to 1,000,000.

Prompt Stack Manager Output Parameters:

current_prompt

This output provides the prompt that corresponds to the current frame based on the seed and frames per prompt. It is the prompt that should be used at the current point in the animation sequence.

previous_prompt

This output gives the prompt that was used in the previous frame, allowing for a smooth transition between prompts. If the current frame is the first frame, it will return the same prompt as the current prompt.

current_frame

This integer output indicates the current frame number within the prompt sequence. It helps in tracking the progress of the animation and understanding which prompt is currently active.

Prompt Stack Manager Usage Tips:

  • To create a smooth animation sequence, carefully plan your prompt stack and ensure that each prompt transitions well to the next.
  • Use the frames_per_prompt parameter to control the pacing of your animation. For slower transitions, increase the number of frames per prompt.
  • Utilize the seed parameter to reproduce specific sequences of prompts, which can be useful for debugging or creating consistent animations.

Prompt Stack Manager Common Errors and Solutions:

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

  • Explanation: This error occurs when a node in the prompt stack does not have the required class_type property.
  • Solution: Ensure that all nodes in your prompt stack are correctly defined and include the class_type property.

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

  • Explanation: This error indicates that a node referenced in the prompt stack does not exist in the node class mappings.
  • Solution: Verify that all nodes referenced in your prompt stack are correctly defined and included in the node class mappings.

"Prompt has no outputs"

  • Explanation: This error occurs when the prompt stack does not produce any outputs.
  • Solution: Ensure that your prompt stack is correctly configured and that there are nodes defined to produce outputs.

Prompt Stack Manager Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FrameFX
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.