ComfyUI > Nodes > ComfyUI prompt control > PCScheduleAddMasks

ComfyUI Node: PCScheduleAddMasks

Class Name

PCScheduleAddMasks

Category
promptcontrol
Author
asagi4 (Account age: 449days)
Extension
ComfyUI prompt control
Latest Updated
2024-06-20
Github Stars
0.17K

How to Install ComfyUI prompt control

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

PCScheduleAddMasks Description

Enhance prompt scheduling by adding multiple masks for nuanced control over AI-generated outputs.

PCScheduleAddMasks:

The PCScheduleAddMasks node is designed to enhance your prompt scheduling by allowing you to add multiple masks to a given prompt schedule. This node is particularly useful for AI artists who want to apply different masks to their prompts, enabling more complex and nuanced control over the generated outputs. By using this node, you can clone an existing prompt schedule and append up to four different masks, which can be used to influence various aspects of the prompt's behavior. This functionality is essential for creating intricate and detailed prompt schedules that can adapt to different artistic needs and styles.

PCScheduleAddMasks Input Parameters:

prompt_schedule

The prompt_schedule parameter is a required input that represents the initial prompt schedule you want to modify. This schedule serves as the base to which the masks will be added. It is essential for defining the structure and timing of your prompts.

mask1

The mask1 parameter is an optional input that allows you to specify the first mask to be added to the prompt schedule. This mask can be used to control specific aspects of the prompt's behavior. If not provided, the prompt schedule will remain unchanged in this regard.

mask2

The mask2 parameter is an optional input that allows you to specify the second mask to be added to the prompt schedule. Similar to mask1, this mask can influence different elements of the prompt. If not provided, the prompt schedule will remain unchanged in this regard.

mask3

The mask3 parameter is an optional input that allows you to specify the third mask to be added to the prompt schedule. This mask provides additional control over the prompt's behavior. If not provided, the prompt schedule will remain unchanged in this regard.

mask4

The mask4 parameter is an optional input that allows you to specify the fourth mask to be added to the prompt schedule. This mask offers further customization options for the prompt. If not provided, the prompt schedule will remain unchanged in this regard.

PCScheduleAddMasks Output Parameters:

PROMPT_SCHEDULE

The PROMPT_SCHEDULE output parameter represents the modified prompt schedule with the added masks. This output is crucial as it provides the updated schedule that incorporates the specified masks, allowing for more detailed and controlled prompt execution.

PCScheduleAddMasks Usage Tips:

  • To achieve the best results, ensure that the masks you add are well-suited to the specific aspects of the prompt you want to control.
  • Experiment with different combinations of masks to see how they influence the prompt schedule and the generated outputs.
  • Use the clone functionality to create multiple variations of a prompt schedule with different masks, enabling you to compare and select the best version.

PCScheduleAddMasks Common Errors and Solutions:

TypeError: 'NoneType' object is not iterable

  • Explanation: This error occurs when one of the mask parameters is not provided and the code attempts to iterate over a None value.
  • Solution: Ensure that all mask parameters are either provided or explicitly set to None to avoid this error.

AttributeError: 'PromptSchedule' object has no attribute 'add_masks'

  • Explanation: This error indicates that the PromptSchedule object does not have the add_masks method, possibly due to an incorrect object type.
  • Solution: Verify that the prompt_schedule parameter is indeed a PromptSchedule object and that it has the add_masks method implemented.

ValueError: Invalid mask shape

  • Explanation: This error occurs when the shape of the provided mask does not match the expected dimensions.
  • Solution: Ensure that all masks have the correct shape and dimensions before adding them to the prompt schedule.

PCScheduleAddMasks Related Nodes

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