Skip to main content
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

ParameterDescriptionData TypeRequiredRange
widthThe width of the video frame in pixels. The default value is 832.INTYes16 - 4096
heightThe height of the video frame in pixels. The default value is 480.INTYes16 - 4096
start_xNormalized X coordinate (0-1) for start position. The default value is 0.0.FLOATYes0.0 - 1.0
start_yNormalized Y coordinate (0-1) for start position. The default value is 0.0.FLOATYes0.0 - 1.0
end_xNormalized X coordinate (0-1) for end position. The default value is 1.0.FLOATYes0.0 - 1.0
end_yNormalized Y coordinate (0-1) for end position. The default value is 1.0.FLOATYes0.0 - 1.0
num_framesThe total number of frames for which to generate track positions. The default value is 81.INTYes1 - 1024
num_tracksThe number of parallel tracks to generate. The default value is 5.INTYes1 - 100
track_spreadNormalized distance between tracks. Tracks are spread perpendicular to the motion direction. The default value is 0.025.FLOATYes0.0 - 1.0
bezierEnable Bezier curve path using the mid point as control point. The default value is False.BOOLEANYesTrue / False
mid_xNormalized X control point for Bezier curve. Only used when ‘bezier’ is enabled. The default value is 0.5.FLOATYes0.0 - 1.0
mid_yNormalized Y control point for Bezier curve. Only used when ‘bezier’ is enabled. The default value is 0.5.FLOATYes0.0 - 1.0
interpolationControls the timing/speed of movement along the path. The default value is “linear”.COMBOYes"linear"
"ease_in"
"ease_out"
"ease_in_out"
"constant"
track_maskOptional mask to indicate visible frames.MASKNo-
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 NameDescriptionData Type
TRACKSA tracks object containing the generated path coordinates and visibility information for all tracks across all frames.TRACKS
track_lengthThe number of frames for which tracks were generated, matching the input num_frames.INT
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): e4070f3f092bccaf8410800e36b97f5dc56584847221cfeca469b2bb4ca44355