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-H3-Motion-Context > H3 Motion Context Trim

ComfyUI Node: H3 Motion Context Trim

Class Name

MiniMaxH3MotionContextTrim

Category
conditioning/minimax
Author
NikoDemon80 (Account age: 174days)
Extension
ComfyUI-H3-Motion-Context
Latest Updated
2026-08-13
Github Stars
0.49K

How to Install ComfyUI-H3-Motion-Context

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

H3 Motion Context Trim Description

Manage and refine motion context in H3 video clips by trimming pinned frames for seamless transitions.

H3 Motion Context Trim:

The MiniMaxH3MotionContextTrim node is designed to manage and refine the motion context within an H3 video clip by trimming the pinned frames from the head of the clip. This node is particularly useful in scenarios where you need to ensure that the initial frames, which are used to establish motion continuity, do not interfere with the subsequent video content. By trimming these frames, the node helps maintain a seamless transition in the video timeline, ensuring that the motion context is preserved without unnecessary repetition of frames. This functionality is crucial for creating smooth and coherent video outputs, especially when dealing with complex motion sequences. The node operates by determining the number of frames to trim based on the specified anchor mode, either removing them from the start or adjusting their indices to avoid overlap with text-based content.

H3 Motion Context Trim Input Parameters:

clip_b_untrimmed

This parameter represents the audio component of the clip before any trimming has been applied. It is crucial for comparing the pinned head of the clip, which is the section that will be trimmed. The audio data is used to ensure that the motion context aligns correctly with the visual content, maintaining synchronization between audio and video. The parameter does not have specific minimum, maximum, or default values, as it is dependent on the input clip's properties.

trim_frames

This integer parameter specifies the number of frames to be trimmed from the head of the video clip. It determines the extent of the pinned span that will be removed to ensure a smooth transition in the video timeline. The trim_frames parameter has a default value of 0, with a minimum value of 0 and a maximum value of 4096. Adjusting this parameter allows you to control how much of the initial motion context is retained or discarded, impacting the final output's continuity and coherence.

H3 Motion Context Trim Output Parameters:

trimmed_clip

The output parameter trimmed_clip represents the video clip after the specified number of frames have been trimmed from the head. This trimmed version of the clip ensures that the motion context is correctly aligned with the rest of the video content, providing a seamless viewing experience. The trimmed clip is crucial for maintaining the intended narrative flow and visual coherence, especially in projects where precise motion continuity is essential.

H3 Motion Context Trim Usage Tips:

  • Ensure that the trim_frames parameter is set appropriately to match the desired motion context alignment. This will help maintain a smooth transition in your video output.
  • Use the clip_b_untrimmed parameter to verify that the audio and video components are synchronized before and after trimming, ensuring that the final output is coherent.

H3 Motion Context Trim Common Errors and Solutions:

"clip B is shorter than the pinned span"

  • Explanation: This error occurs when the length of the untrimmed clip is less than the number of frames specified in trim_frames.
  • Solution: Reduce the trim_frames value to ensure it does not exceed the length of the clip, or provide a longer input clip.

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

  • Explanation: This message indicates that the trim_frames parameter is set to 0, resulting in no frames being trimmed.
  • Solution: Increase the trim_frames value if you intend to trim frames from the clip to adjust the motion context.

H3 Motion Context Trim Related Nodes

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

H3 Motion Context Trim