Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-PainterNodes > Painter Frame Extractor

ComfyUI Node: Painter Frame Extractor

Class Name

PainterFrameExtractor

Category
image/batch
Author
princepainter (Account age: 1255days)
Extension
ComfyUI-PainterNodes
Latest Updated
2026-07-14
Github Stars
0.14K

How to Install ComfyUI-PainterNodes

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

Painter Frame Extractor Description

Facilitates extraction of specific frames from image batches for frame-specific operations in various applications.

Painter Frame Extractor:

The PainterFrameExtractor node is designed to facilitate the extraction of specific frames from a batch of images, which is particularly useful in scenarios where you need to isolate certain frames for further processing or analysis. This node is capable of handling a sequence of images and allows you to select specific frames based on their indices. By providing the ability to extract the first and last frames, as well as two additional frames specified by their indices, this node offers flexibility in managing image sequences. This functionality is essential for tasks such as animation, video processing, or any application where frame-specific operations are required. The PainterFrameExtractor simplifies the process of accessing and manipulating individual frames within a larger batch, making it an invaluable tool for AI artists working with image sequences.

Painter Frame Extractor Input Parameters:

image

The image parameter is the input batch of images from which frames will be extracted. It is expected to be a tensor containing multiple images, typically representing a sequence or batch. This parameter is crucial as it serves as the source from which specific frames are selected. The images should be organized in a way that the first dimension represents the batch size or the number of frames available.

image1_idx

The image1_idx parameter specifies the index of the first additional frame you wish to extract from the batch. It is an integer value with a default of 0, and it can range from 0 to 99999. This parameter allows you to pinpoint a specific frame within the sequence, enabling targeted frame extraction for further processing or analysis.

image2_idx

The image2_idx parameter functions similarly to image1_idx, but it specifies the index of the second additional frame to be extracted. It is also an integer value with a default of 0, and it can range from 0 to 99999. This parameter provides the flexibility to select another specific frame from the batch, allowing for more comprehensive frame manipulation and analysis.

Painter Frame Extractor Output Parameters:

start_image

The start_image output is the first frame of the input batch. It serves as a reference point or starting frame for the sequence, which can be useful for tasks that require knowledge of the initial state of the image sequence.

end_image

The end_image output is the last frame of the input batch. This frame is often used as a reference for the final state of the sequence, which can be important for tasks involving transitions or end-state analysis.

image1

The image1 output corresponds to the frame extracted at the index specified by image1_idx. This output allows you to access and utilize a specific frame from the batch, based on your selection criteria.

image2

The image2 output corresponds to the frame extracted at the index specified by image2_idx. Similar to image1, this output provides access to another specific frame within the batch, enabling detailed frame-specific operations.

image1_idx

The image1_idx output returns the index of the first additional frame that was extracted. This output is useful for verification purposes, ensuring that the correct frame index was used during extraction.

image2_idx

The image2_idx output returns the index of the second additional frame that was extracted. Like image1_idx, this output helps confirm that the intended frame index was applied during the extraction process.

Painter Frame Extractor Usage Tips:

  • Ensure that the image input is a properly formatted tensor with the first dimension representing the number of frames, as this will facilitate accurate frame extraction.
  • Use image1_idx and image2_idx to target specific frames within your batch for extraction, allowing you to focus on frames of interest for further processing or analysis.

Painter Frame Extractor Common Errors and Solutions:

IndexError: index out of range

  • Explanation: This error occurs when the specified image1_idx or image2_idx exceeds the number of frames available in the input batch.
  • Solution: Verify that the indices provided are within the valid range of the batch size. Adjust the indices to ensure they do not exceed the total number of frames.

TypeError: expected Tensor as input

  • Explanation: This error arises when the image input is not a tensor, which is required for the node to function correctly.
  • Solution: Ensure that the input provided to the image parameter is a tensor. Convert any non-tensor inputs to the appropriate format before using the node.

Painter Frame Extractor Related Nodes

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

Painter Frame Extractor