Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The GenerateTracks node creates multiple parallel motion paths for video generation. It defines a primary path from a start point to an end point, then generates a set of tracks that run parallel to this path, spaced evenly apart. You can control the shape of the path (straight line or Bezier curve), the speed of movement along it, and which frames the tracks are visible in.

Inputs

ParameterData TypeRequiredRangeDescription
widthINTYes16 - 4096The width of the video frame in pixels. The default value is 832.
heightINTYes16 - 4096The height of the video frame in pixels. The default value is 480.
start_xFLOATYes0.0 - 1.0Normalized X coordinate (0-1) for start position. The default value is 0.0.
start_yFLOATYes0.0 - 1.0Normalized Y coordinate (0-1) for start position. The default value is 0.0.
end_xFLOATYes0.0 - 1.0Normalized X coordinate (0-1) for end position. The default value is 1.0.
end_yFLOATYes0.0 - 1.0Normalized Y coordinate (0-1) for end position. The default value is 1.0.
num_framesINTYes1 - 1024The total number of frames for which to generate track positions. The default value is 81.
num_tracksINTYes1 - 100The number of parallel tracks to generate. The default value is 5.
track_spreadFLOATYes0.0 - 1.0Normalized distance between tracks. Tracks are spread perpendicular to the motion direction. The default value is 0.025.
bezierBOOLEANYesTrue / FalseEnable Bezier curve path using the mid point as control point. The default value is False.
mid_xFLOATYes0.0 - 1.0Normalized X control point for Bezier curve. Only used when ‘bezier’ is enabled. The default value is 0.5.
mid_yFLOATYes0.0 - 1.0Normalized Y control point for Bezier curve. Only used when ‘bezier’ is enabled. The default value is 0.5.
interpolationCOMBOYes"linear"
"ease_in"
"ease_out"
"ease_in_out"
"constant"
Controls the timing/speed of movement along the path. The default value is “linear”.
track_maskMASKNo-Optional mask to indicate visible frames.
Note: The mid_x and mid_y parameters are only used when the bezier parameter is set to True. When bezier is False, the path is a straight line from the start to the end point.

Outputs

Output NameData TypeDescription
TRACKSTRACKSA tracks object containing the generated path coordinates and visibility information for all tracks across all frames.
track_lengthINTThe number of frames for which tracks were generated, matching the input num_frames.