ComfyUI > Nodes > HouseKeeper > Alignment Command (Internal)

ComfyUI Node: Alignment Command (Internal)

Class Name

housekeeper-alignment-cmd

Category
housekeeper/alignment
Author
joanna910225 (Account age: 4268days)
Extension
HouseKeeper
Latest Updated
2025-12-02
Github Stars
0.02K

How to Install HouseKeeper

Install this extension via the ComfyUI Manager by searching for HouseKeeper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter HouseKeeper 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Alignment Command (Internal) Description

Facilitates node alignment in ComfyUI, enhancing layout organization and workflow efficiency.

Alignment Command (Internal):

The housekeeper-alignment-cmd node is an internal utility designed to facilitate the alignment of nodes within the ComfyUI canvas. It acts as a bridge between the frontend Vue component and the backend, processing alignment commands to ensure that nodes are organized according to specified alignment types. This node is particularly beneficial for users who need to maintain a tidy and structured layout of nodes, enhancing the visual clarity and workflow efficiency within the canvas. By handling alignment operations, it allows users to focus on creative tasks while ensuring that the technical aspects of node arrangement are managed seamlessly.

Alignment Command (Internal) Input Parameters:

alignment_type

The alignment_type parameter specifies the direction in which the nodes should be aligned. It accepts options such as "left", "right", "top", and "bottom", with the default being "left". This parameter determines the alignment orientation, impacting how nodes are visually arranged on the canvas. By choosing the appropriate alignment type, you can ensure that nodes are organized in a manner that best suits your workflow and aesthetic preferences.

node_ids

The node_ids parameter is a string that contains a JSON array of node identifiers. It is used to specify which nodes on the canvas should be aligned. The default value is an empty array "[]", indicating no nodes are selected by default. This parameter is crucial for targeting specific nodes for alignment, allowing for precise control over which elements are affected by the alignment operation.

canvas_info

The canvas_info parameter is a string that contains a JSON object with information about the canvas. This data is used to understand the current state and layout of the canvas, which is essential for executing the alignment correctly. The default value is an empty object "{}". This parameter ensures that the alignment process takes into account the existing canvas configuration, leading to more accurate and context-aware alignment results.

Alignment Command (Internal) Output Parameters:

result

The result parameter is a string that contains a JSON object with the outcome of the alignment operation. It includes information such as whether the operation was successful, the type of alignment performed, the number of nodes processed, and a message detailing the result. This output is important for confirming that the alignment was executed as intended and provides feedback on the operation's success, helping you understand the impact of the alignment command.

Alignment Command (Internal) Usage Tips:

  • Ensure that the node_ids parameter accurately reflects the nodes you wish to align to avoid unintended changes to your canvas layout.
  • Use the alignment_type parameter to experiment with different node arrangements, which can help optimize your workflow and improve the visual organization of your canvas.
  • Regularly check the result output to verify that alignment operations are successful and to gain insights into the number of nodes affected.

Alignment Command (Internal) Common Errors and Solutions:

Failed to process alignment: <error_message>

  • Explanation: This error occurs when there is an issue with processing the alignment command, possibly due to incorrect JSON formatting in the node_ids or canvas_info parameters.
  • Solution: Ensure that both node_ids and canvas_info are correctly formatted JSON strings. Double-check for syntax errors or missing elements in the JSON data.

Invalid alignment type

  • Explanation: This error arises when an unsupported value is provided for the alignment_type parameter.
  • Solution: Verify that the alignment_type is set to one of the supported options: "left", "right", "top", or "bottom". Adjust the parameter value accordingly to resolve the issue.

Alignment Command (Internal) Related Nodes

Go back to the extension to check out more related nodes.
HouseKeeper
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Alignment Command (Internal)