ComfyUI > Nodes > ComfyUI-Wan-SVI2Pro-FLF > Wan Cut Last Slot

ComfyUI Node: Wan Cut Last Slot

Class Name

WanCutLastSlot

Category
latent/video
Author
Well-Made (Account age: 0days)
Extension
ComfyUI-Wan-SVI2Pro-FLF
Latest Updated
2026-03-20
Github Stars
0.05K

How to Install ComfyUI-Wan-SVI2Pro-FLF

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

Wan Cut Last Slot Description

Trims specified temporal slots from the end of latent video clips in the Wan framework.

Wan Cut Last Slot:

The WanCutLastSlot node is a utility designed for processing video latents in the Wan video framework. Its primary function is to trim a specified number of temporal slots from the end of a latent video clip. In the context of Wan 2.2, each temporal slot corresponds to approximately four video frames, meaning that removing one slot effectively eliminates the last four frames of latent information from the sequence. This node is particularly useful for artists and developers working with video sequences who need to adjust the length of their latent clips by removing unnecessary or unwanted frames from the end. By providing a straightforward method to control the temporal length of video latents, WanCutLastSlot enhances the flexibility and precision of video editing workflows within the Wan framework.

Wan Cut Last Slot Input Parameters:

latents

This parameter represents the video latents that you wish to trim. It is expected to be a dictionary with a key named samples, which contains the latent data in a specific shape: [B, C, T, H, W]. Here, B stands for batch size, C for channels, T for temporal slots, and H and W for height and width, respectively. The node will remove the specified number of temporal slots from the end of this data, effectively shortening the video sequence.

slots_to_cut

This integer parameter determines how many temporal slots will be removed from the end of the latent clip. The value can range from 1 to 64, with a default of 1. Each slot corresponds to approximately four frames, so adjusting this parameter allows you to control how many frames are trimmed from the end of the sequence. The node ensures that at least one temporal slot remains, preventing the complete removal of the sequence.

Wan Cut Last Slot Output Parameters:

trimmed_latents

The output is a dictionary similar to the input, but with the temporal dimension reduced by the number of slots specified in slots_to_cut. This trimmed version of the latents retains the original structure and format, allowing for seamless integration into subsequent processing steps. The output provides a more concise version of the original video latents, with the specified number of frames removed from the end.

Wan Cut Last Slot Usage Tips:

  • To maintain a specific length of your video sequence, carefully choose the slots_to_cut value based on the number of frames you wish to remove. Remember that each slot corresponds to four frames.
  • Use this node when you need to adjust the end of a video sequence without affecting the beginning or middle parts, ensuring that the final output meets your desired specifications.

Wan Cut Last Slot Common Errors and Solutions:

"IndexError: index out of range in dimension 2"

  • Explanation: This error may occur if the slots_to_cut value is greater than or equal to the total number of temporal slots in the input latents.
  • Solution: Ensure that the slots_to_cut value is less than the total number of temporal slots in the input. The node automatically ensures at least one slot remains, but double-check your input dimensions to avoid this error.

"KeyError: 'samples'"

  • Explanation: This error indicates that the input dictionary does not contain the expected key samples.
  • Solution: Verify that the input latents dictionary is correctly formatted and includes the samples key with the appropriate data structure.

Wan Cut Last Slot Related Nodes

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