ComfyUI > Nodes > Comfyui_PDuse > PDJSON_incrementalnumber

ComfyUI Node: PDJSON_incrementalnumber

Class Name

PDJSON_BatchJsonIncremental

Category
image/PD_jsonincremental
Author
7BEII (Account age: 453days)
Extension
Comfyui_PDuse
Latest Updated
2026-03-25
Github Stars
0.05K

How to Install Comfyui_PDuse

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

PDJSON_incrementalnumber Description

Batch processes JSON files to incrementally adjust node positions for organized layouts.

PDJSON_incrementalnumber:

The PDJSON_BatchJsonIncremental node is designed to streamline the process of organizing and modifying JSON files that contain node data. Its primary function is to batch process JSON files by incrementally adjusting the position of nodes within each file. This node is particularly useful for AI artists who work with complex node-based systems and need to ensure that nodes are systematically arranged for better visualization and management. By automatically adjusting the pos and xy attributes of nodes based on specified starting coordinates and increments, this node helps maintain a consistent layout across multiple files, enhancing both the aesthetic and functional aspects of node-based projects. The node's ability to handle multiple files at once significantly reduces manual effort and minimizes errors, making it an essential tool for efficient workflow management.

PDJSON_incrementalnumber Input Parameters:

input_folder

The input_folder parameter specifies the directory path where the JSON files to be processed are located. It is crucial for the node to know where to find the input files to perform its operations. The default value is set to A:\1_area\area_python\pojie, but you can change it to any directory path that contains your JSON files. This parameter does not have a minimum or maximum value, but it must be a valid directory path.

output_folder

The output_folder parameter defines the directory path where the processed JSON files will be saved. This ensures that the original files remain unchanged and that the modified files are stored separately. If the specified directory does not exist, the node will create it. Like input_folder, this parameter must be a valid directory path.

start_x

The start_x parameter sets the initial X-coordinate for positioning nodes. It determines where the first node will be placed horizontally. The default value is 0, and it can be adjusted to any integer value to suit your layout preferences.

start_y

The start_y parameter sets the initial Y-coordinate for positioning nodes. It determines where the first node will be placed vertically. The default value is 0, and it can be adjusted to any integer value to suit your layout preferences.

increment

The increment parameter specifies the step size for incrementing the position of each subsequent node. This value affects both the X and Y coordinates, ensuring that nodes are evenly spaced. The default value is 20, and it can be adjusted to any integer value to control the spacing between nodes.

file_prefix

The file_prefix parameter allows you to define a prefix for the names of the output files. This helps in easily identifying and organizing the processed files. The default prefix is Modified, and you can change it to any string that suits your naming conventions.

PDJSON_incrementalnumber Output Parameters:

result_message

The result_message output parameter provides a summary of the batch processing operation. It includes information about the number of files processed, the directory where the modified files are saved, and a list of the processed files. This message serves as a confirmation that the operation was successful and provides details for further reference.

PDJSON_incrementalnumber Usage Tips:

  • Ensure that the input_folder contains only the JSON files you wish to process to avoid unnecessary errors or processing of irrelevant files.
  • Adjust the start_x, start_y, and increment parameters to achieve the desired layout for your nodes, especially if you are working with a large number of nodes or require specific spacing.
  • Use a meaningful file_prefix to easily identify the processed files, especially when dealing with multiple batches or projects.

PDJSON_incrementalnumber Common Errors and Solutions:

Error: 输入文件夹中没有找到 JSON 文件: <input_folder>

  • Explanation: This error occurs when the specified input_folder does not contain any JSON files, which are necessary for the node to perform its operations.
  • Solution: Verify that the input_folder path is correct and that it contains the JSON files you intend to process. Ensure that the files have the .json extension.

Error decoding JSON file

  • Explanation: This error indicates that there was an issue reading one of the JSON files, possibly due to incorrect formatting or corruption.
  • Solution: Check the JSON files for syntax errors or corruption. You can use a JSON validator to ensure that the files are correctly formatted before processing them with the node.

PDJSON_incrementalnumber Related Nodes

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

PDJSON_incrementalnumber