ComfyUI > Nodes > Comfyui_TTP_Toolset > TTP_CoordinateSplitter

ComfyUI Node: TTP_CoordinateSplitter

Class Name

TTP_CoordinateSplitter

Category
TTP/Conditioning
Author
TTPlanetPig (Account age: 868days)
Extension
Comfyui_TTP_Toolset
Latest Updated
2026-01-08
Github Stars
0.97K

How to Install Comfyui_TTP_Toolset

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

TTP_CoordinateSplitter Description

Transforms coordinate groups into starting points and dimensions for easier spatial data handling.

TTP_CoordinateSplitter:

The TTP_CoordinateSplitter node is designed to process a list of coordinate groups, each containing four values, and transform them into a more usable format by calculating the width and height of each coordinate group. This node is particularly useful in scenarios where you need to work with rectangular areas defined by two corner points, as it simplifies the data into a format that includes the starting point and dimensions. By ensuring that each coordinate group contains exactly four values, the node helps maintain data integrity and consistency, making it easier to handle and manipulate spatial data in your AI art projects.

TTP_CoordinateSplitter Input Parameters:

Positions

The Positions parameter is a required input that expects a list of coordinate groups, where each group is a list containing exactly four numerical values. These values represent two corner points of a rectangle: the first two values are the x and y coordinates of the top-left corner, and the last two values are the x and y coordinates of the bottom-right corner. This parameter is crucial as it provides the raw data that the node will process to calculate the width and height of each rectangle. There are no specific minimum, maximum, or default values for this parameter, but it is essential that each coordinate group contains exactly four values to avoid errors.

TTP_CoordinateSplitter Output Parameters:

Coordinates

The Coordinates output is a list of tuples, where each tuple contains four values: the x and y coordinates of the top-left corner, followed by the width and height of the rectangle. This output format is more intuitive for tasks that require manipulation of rectangular areas, as it directly provides the dimensions needed for further processing. The Coordinates output is essential for applications that involve spatial transformations or visualizations, as it simplifies the handling of rectangular data by providing both position and size in a single structure.

TTP_CoordinateSplitter Usage Tips:

  • Ensure that each coordinate group in the Positions input contains exactly four values to prevent errors and ensure accurate processing.
  • Use the Coordinates output to easily access the dimensions of each rectangle, which can be particularly useful for tasks involving image cropping or layout adjustments.
  • Consider validating your input data before passing it to the node to ensure that all coordinate groups are correctly formatted and contain valid numerical values.

TTP_CoordinateSplitter Common Errors and Solutions:

Coordinate group must contain exactly 4 values

  • Explanation: This error occurs when a coordinate group in the Positions input does not contain exactly four values, which is required for the node to function correctly.
  • Solution: Check your input data to ensure that each coordinate group is a list of exactly four numerical values. Correct any groups that do not meet this requirement before passing them to the node.

The number of coordinates does not match the required number

  • Explanation: This error indicates a mismatch between the number of coordinate groups provided and the expected number based on other parameters or conditions.
  • Solution: Verify that the number of coordinate groups in your input matches the expected number for your specific use case. Adjust your input data or configuration as necessary to resolve the mismatch.

TTP_CoordinateSplitter Related Nodes

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