ComfyUI > Nodes > TrentNodes > Animation Frame Remover

ComfyUI Node: Animation Frame Remover

Class Name

AnimationFrameRemover

Category
Animation/Timing
Author
TrentHunter82 (Account age: 0days)
Extension
TrentNodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install TrentNodes

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

Animation Frame Remover Description

Removes specific frames from animations to optimize playback and eliminate unnecessary data.

Animation Frame Remover:

The AnimationFrameRemover is a specialized node designed to streamline the animation process by removing specific frames from a batch of images. This node is particularly useful for eliminating padding frames that may have been inserted during the animation timing process, such as those added by the AnimationDuplicateFrameProcessor. By allowing you to specify which frames to remove, the AnimationFrameRemover helps maintain the integrity and flow of your animation, ensuring that only the necessary frames are retained. This can be especially beneficial in optimizing animations for smoother playback and reducing unnecessary data processing. The node's functionality is straightforward yet powerful, providing a simple interface to manage and refine your animation sequences effectively.

Animation Frame Remover Input Parameters:

images

This parameter represents the batch of images from which frames will be removed. It is the primary input for the node, and its function is to provide the set of frames that will be processed. The images are expected to be in a format that the node can handle, typically as a tensor or array of image data. There are no specific minimum or maximum values for this parameter, as it depends on the size and format of your animation frames.

removal_indices

This parameter is a string that specifies the indices of the frames to be removed from the batch. It should be provided as a comma-separated list of integers, each representing a frame index. The impact of this parameter is significant, as it directly determines which frames will be excluded from the final output. The default value is an empty string, indicating that no frames will be removed unless specified. It is crucial to ensure that the indices are within the valid range of the image batch to avoid errors.

debug_info

This optional boolean parameter, when set to true, enables the printing of detailed information about the frames being removed. This can be helpful for debugging purposes, allowing you to verify which frames are being processed and removed. The default value is false, meaning that no debug information will be printed unless explicitly enabled.

Animation Frame Remover Output Parameters:

images

The output images parameter provides the batch of images after the specified frames have been removed. This output is crucial as it represents the refined set of frames that will be used in the final animation. The importance of this parameter lies in its ability to deliver a streamlined sequence, free from unnecessary padding frames, thus enhancing the animation's quality and performance.

removal_report

The removal_report is a string output that provides a summary of the frame removal process. It includes details such as the number of frames removed and any relevant information about the operation. This report is valuable for understanding the changes made to the image batch and for verifying that the correct frames have been removed according to the specified indices.

Animation Frame Remover Usage Tips:

  • Ensure that the removal_indices parameter is correctly formatted as a comma-separated list of integers to avoid parsing errors.
  • Use the debug_info parameter to gain insights into the frame removal process, especially when troubleshooting or verifying the operation.
  • Double-check that the indices specified in removal_indices are within the valid range of your image batch to prevent errors and ensure the desired frames are removed.

Animation Frame Remover Common Errors and Solutions:

Error parsing removal indices

  • Explanation: This error occurs when the removal_indices string contains non-integer values or is improperly formatted.
  • Solution: Ensure that the removal_indices string is a comma-separated list of integers without any extraneous characters or spaces.

No valid frames to remove

  • Explanation: This message indicates that the specified indices do not correspond to any frames within the valid range of the image batch.
  • Solution: Verify that the indices in removal_indices are within the range of the image batch size and adjust them accordingly.

Warning: Invalid indices (out of range)

  • Explanation: This warning is issued when some indices in removal_indices are outside the valid range of the image batch.
  • Solution: Check the indices and ensure they fall within the range of available frames in the batch. Adjust any out-of-range indices to valid values.

Animation Frame Remover Related Nodes

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

Animation Frame Remover