ComfyUI > Nodes > IAMCCS-nodes > Source Range From Segment Plan

ComfyUI Node: Source Range From Segment Plan

Class Name

IAMCCS_SourceRangeFromSegmentPlan

Category
IAMCCS/LTX-2
Author
IAMCCS (Account age: 2204days)
Extension
IAMCCS-nodes
Latest Updated
2026-03-27
Github Stars
0.08K

How to Install IAMCCS-nodes

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

Source Range From Segment Plan Description

Calculates frame range for video segments, ensuring precise processing without duplication.

Source Range From Segment Plan:

The IAMCCS_SourceRangeFromSegmentPlan node is designed to calculate the range of frames that should be processed for a specific segment within a larger video or animation project. This node is particularly useful in scenarios where you need to manage and manipulate video segments with overlapping frames, ensuring that each segment is processed correctly without duplicating or missing frames. By determining the start and end indices of the frames for a given segment, this node helps in organizing the workflow efficiently, especially when dealing with complex video editing tasks that require precise frame management. The node's primary function is to derive the frame range based on the segment's index and its unique and raw frame counts, providing a structured approach to handle video segments seamlessly.

Source Range From Segment Plan Input Parameters:

segment_index

The segment_index parameter specifies the index of the segment for which the frame range is being calculated. It determines which segment's frames are being processed and is crucial for identifying the correct segment in a sequence. The minimum value is 0, and there is no explicit maximum value, but it should correspond to the number of segments in your project.

current_segment_raw_frames

This parameter represents the total number of frames in the current segment, including any overlapping frames. It is essential for calculating the complete range of frames that need to be processed for the segment. The minimum value is 1, ensuring that there is at least one frame to process.

current_segment_unique_frames

The current_segment_unique_frames parameter indicates the number of unique frames in the current segment, excluding any overlapping frames. This value is used to determine the overlap and backtrack calculations, which are critical for accurate frame range derivation. The minimum value is 1.

current_segment_start_frames

This parameter defines the starting frame index for the current segment's unique frames. It is used to calculate the starting point of the frame range, ensuring that the segment begins processing at the correct frame. The minimum value is 0.

Source Range From Segment Plan Output Parameters:

range_start_index

The range_start_index output parameter provides the starting index of the frame range for the specified segment. It indicates where the processing of frames should begin for the segment, ensuring that the correct frames are included in the workflow.

range_end_index

This output parameter specifies the ending index of the frame range for the segment. It marks the point at which frame processing should stop, ensuring that all necessary frames are included without exceeding the segment's boundaries.

range_count

The range_count parameter indicates the total number of frames in the calculated range. It provides a count of frames that will be processed for the segment, ensuring that the workflow includes the correct number of frames.

report

The report output is a string that provides a detailed summary of the frame range calculation, including the segment index, raw and unique frame counts, start frames, backtrack value, and the calculated range. This report is useful for debugging and verifying that the frame range has been calculated correctly.

Source Range From Segment Plan Usage Tips:

  • Ensure that the segment_index corresponds accurately to the segment you wish to process to avoid processing the wrong frames.
  • Adjust the current_segment_raw_frames and current_segment_unique_frames to reflect the actual frame counts in your segment for precise range calculations.
  • Use the report output to verify the calculated frame range and ensure it aligns with your project requirements.

Source Range From Segment Plan Common Errors and Solutions:

Invalid segment_index

  • Explanation: The segment_index provided is out of range or not valid for the current project.
  • Solution: Verify that the segment_index is within the valid range of segments in your project and corresponds to an existing segment.

Negative frame count

  • Explanation: The calculated frame range results in a negative frame count, indicating an error in input parameters.
  • Solution: Check the values of current_segment_raw_frames and current_segment_unique_frames to ensure they are correctly set and reflect the actual frame counts.

Overlapping frames miscalculation

  • Explanation: The overlap and backtrack calculations are incorrect, leading to an inaccurate frame range.
  • Solution: Review the current_segment_unique_frames and current_segment_start_frames to ensure they are set correctly, and adjust if necessary to account for overlaps accurately.

Source Range From Segment Plan Related Nodes

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

Source Range From Segment Plan