ComfyUI > Nodes > DJZ-Nodes > Batch Range Insert

ComfyUI Node: Batch Range Insert

Class Name

BatchRangeInsert

Category
image/batch
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

Batch Range Insert Description

Insert batch of images into specific range in image sequence for seamless integration and dynamic manipulation.

Batch Range Insert:

The BatchRangeInsert node is designed to enhance your image processing workflow by allowing you to insert a batch of images into a specific range within a target sequence of images. This node is particularly useful when you need to modify or extend an existing sequence by adding new frames, such as in video editing or animation tasks. By specifying a start and end frame, you can precisely control where the new images are inserted, ensuring seamless integration into the original sequence. The node automatically adjusts the sequence length to accommodate the inserted frames, making it a powerful tool for dynamic image manipulation.

Batch Range Insert Input Parameters:

target_sequence

The target_sequence parameter represents the main sequence of images that you wish to modify. It is essential that this sequence is a batch of multiple images, as the node is designed to work with sequences rather than single images. The sequence should have a minimum of four dimensions, typically representing the batch size, height, width, and color channels. This parameter is crucial as it serves as the base into which new frames will be inserted.

insert_frames

The insert_frames parameter consists of the batch of images that you want to insert into the target sequence. Like the target_sequence, this should also be a batch of images with at least four dimensions. The number of frames in this batch will determine how many new images are added to the target sequence, impacting the final length of the sequence.

start_frame

The start_frame parameter specifies the index in the target sequence where the insertion of new frames will begin. It is an integer value with a default of 0, a minimum of 0, and a maximum of 999. This parameter allows you to control the exact point in the sequence where the new images will be inserted, providing flexibility in how the sequence is modified.

end_frame

The end_frame parameter indicates the index in the target sequence where the insertion of new frames will end. It is an integer value with a default of 1, a minimum of 0, and a maximum of 999. This parameter, in conjunction with start_frame, defines the range of the target sequence that will be replaced by the new frames. The node ensures that the specified range is valid and adjusts it if necessary to fit within the sequence.

Batch Range Insert Output Parameters:

IMAGE

The output of the BatchRangeInsert node is a modified sequence of images, represented by the IMAGE parameter. This output contains the original sequence with the specified range replaced by the inserted frames. The sequence is adjusted in length to accommodate the new frames, resulting in a seamless integration of the new images into the original sequence. This output is crucial for further processing or rendering tasks, as it reflects the updated sequence after the insertion operation.

Batch Range Insert Usage Tips:

  • Ensure that both target_sequence and insert_frames are batches of images with the correct dimensions to avoid errors and achieve the desired results.
  • Use the start_frame and end_frame parameters to precisely control where the new frames are inserted, allowing for targeted modifications within the sequence.

Batch Range Insert Common Errors and Solutions:

Warning: Batch Range Insert node requires a batch of multiple images for target sequence

  • Explanation: This error occurs when the target_sequence does not contain multiple images or lacks the required dimensions.
  • Solution: Ensure that the target_sequence is a batch of images with at least four dimensions, including batch size, height, width, and channels.

Warning: Batch Range Insert node requires a batch of images for insert frames

  • Explanation: This error is triggered when the insert_frames parameter does not contain a batch of images.
  • Solution: Verify that the insert_frames is a batch of images with the appropriate dimensions to match the target_sequence.

Batch Range Insert Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.