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-MiniMaxH3-Contex-Loop > MiniMax H3 Contex Loop Trim

ComfyUI Node: MiniMax H3 Contex Loop Trim

Class Name

MiniMaxH3LoopTrim

Category
conditioning/minimax/contex_loop
Author
ethanfel (Account age: 3377days)
Extension
ComfyUI-MiniMaxH3-Contex-Loop
Latest Updated
2026-08-13
Github Stars
0.17K

How to Install ComfyUI-MiniMaxH3-Contex-Loop

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

MiniMax H3 Contex Loop Trim Description

Sequence frame trimmer optimizing continuity and overlap for video and animation processing.

MiniMax H3 Contex Loop Trim:

The MiniMaxH3LoopTrim node is designed to manage and manipulate sequences of frames or images by trimming them based on specified parameters. Its primary function is to handle the overlap of frames in a sequence, ensuring that the output is optimized for further processing or analysis. This node is particularly useful in scenarios where you need to maintain a certain continuity or context between frames, such as in video processing or animation sequences. By allowing you to specify the number of frames to retain or overlap, it provides flexibility in managing how sequences are trimmed, ensuring that important contextual information is not lost. This capability is crucial for maintaining the integrity of sequences in applications where frame continuity is essential.

MiniMax H3 Contex Loop Trim Input Parameters:

images

This parameter represents the sequence of images or frames that you want to process. It is crucial as it forms the basis of the trimming operation. The images are typically decoded from the current H3 sample, and the node will remove the leading pinned overlap from these images. This ensures that the sequence is prepared for further processing without redundant overlaps.

trim_frames

The trim_frames parameter specifies the number of frames to be trimmed from the sequence. It is an integer value with a default of 0, a minimum of 0, and a maximum of 4096. This parameter is essential for controlling how much of the sequence is retained or discarded. In head mode, it removes the repeated overlap, while in before mode, it supplies 0, indicating no trimming. Adjusting this parameter allows you to fine-tune the sequence for specific requirements, ensuring that only the necessary frames are retained.

audio

This optional parameter allows you to include audio data in the trimming process. If provided, the node will consider the audio context when trimming the frames, ensuring that the audio and visual components remain synchronized. This is particularly useful in applications where audio-visual synchronization is critical.

fps

The fps parameter stands for frames per second and is used to calculate the span of the sequence in seconds. It defaults to 24.0 and is crucial for determining the timing and pacing of the sequence. By adjusting the fps, you can control how quickly or slowly the sequence progresses, which can impact the overall feel and timing of the output.

match_tail

This boolean parameter determines whether the tail of the sequence should be matched with the trimmed frames. When set to true, it ensures that the end of the sequence aligns with the trimmed frames, maintaining continuity. This is important for applications where the end of the sequence needs to seamlessly transition into the next segment.

retain_overlap_frames

The retain_overlap_frames parameter specifies the number of overlap frames to retain in the sequence. It is an integer value that allows you to control how much of the overlapping context is preserved. This is crucial for maintaining continuity between sequences, especially in applications where context is important for understanding the sequence as a whole.

MiniMax H3 Contex Loop Trim Output Parameters:

delivered

The delivered output represents the sequence of frames that have been processed and trimmed according to the specified parameters. This output is crucial as it forms the final sequence that will be used for further processing or analysis. It ensures that only the necessary frames are retained, optimizing the sequence for its intended purpose.

with_overlap

The with_overlap output includes the trimmed sequence along with the retained overlap frames. This output is important for applications where maintaining some level of context between sequences is necessary. It provides a balance between trimming and retaining important contextual information.

retained

The retained output indicates the number of overlap frames that were retained in the sequence. This output is useful for understanding how much of the original sequence was preserved, providing insight into the trimming process and its impact on the sequence.

MiniMax H3 Contex Loop Trim Usage Tips:

  • To maintain continuity between sequences, adjust the retain_overlap_frames parameter to ensure that enough context is preserved without retaining unnecessary frames.
  • Use the fps parameter to control the pacing of your sequence, ensuring that it aligns with the desired timing and feel of your project.
  • When working with audio-visual sequences, ensure that the audio parameter is included to maintain synchronization between the audio and visual components.

MiniMax H3 Contex Loop Trim Common Errors and Solutions:

"trim_frames is 0, so there is no pinned span and nothing to measure."

  • Explanation: This error occurs when the trim_frames parameter is set to 0, resulting in no frames being trimmed.
  • Solution: Ensure that the trim_frames parameter is set to a value greater than 0 to enable trimming of the sequence.

"clip B is shorter than the pinned span."

  • Explanation: This error indicates that the sequence is shorter than the specified span, leading to insufficient frames for trimming.
  • Solution: Adjust the trim_frames parameter to ensure that it does not exceed the length of the sequence, or provide a longer sequence for processing.

"no clip_a_latent wired: measuring the join needs the previous clip's latent and the audio VAE to decode it."

  • Explanation: This error occurs when the necessary latent data or audio VAE is not provided, preventing proper measurement of the sequence join.
  • Solution: Ensure that both clip_a_latent and audio_vae are correctly wired to provide the necessary data for processing.

MiniMax H3 Contex Loop Trim Related Nodes

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

MiniMax H3 Contex Loop Trim