ComfyUI > Nodes > ComfyUI > GenerateTracks

ComfyUI Node: GenerateTracks

Class Name

GenerateTracks

Category
conditioning/video_models
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

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

GenerateTracks Description

Create motion paths for video models to simulate camera movements or object paths, enhancing realism and fluidity.

GenerateTracks:

The GenerateTracks node is designed to create motion paths or trajectories for video models, providing a structured way to simulate camera movements or object paths within a video sequence. This node is particularly beneficial for artists and creators who want to add dynamic motion to their video projects without manually animating each frame. By generating tracks, it allows for the seamless integration of motion into video models, enhancing the realism and fluidity of animations. The node processes input data to produce a series of coordinates that represent the movement over time, making it an essential tool for conditioning video models with realistic motion paths.

GenerateTracks Input Parameters:

track_coords

track_coords is a string input that contains JSON-formatted data representing the coordinates of the tracks. This parameter is crucial as it defines the initial positions and paths that the node will process to generate the motion tracks. The input should be a valid JSON string, and it is mandatory to provide this data for the node to function correctly. The default value is an empty JSON array [], which means no tracks are provided initially. Properly formatted input ensures accurate track generation and prevents errors during processing.

track_mask

track_mask is an optional input that allows you to specify a mask for the tracks. This mask can be used to define the visibility of certain parts of the tracks, enabling selective processing of the motion paths. If not provided, the node assumes all tracks are visible by default. The mask should be a tensor that matches the dimensions of the track data, and it helps in controlling which parts of the tracks are active or inactive during the generation process.

GenerateTracks Output Parameters:

track_path

track_path is the primary output of the node, providing the generated motion paths as a tensor. This output contains the coordinates of the tracks over time, representing the movement paths that have been processed and adjusted based on the input parameters. The track_path is essential for applying the generated motion to video models, allowing for dynamic and realistic animations.

track_visibility

track_visibility is an output that indicates the visibility status of each track over time. This boolean tensor helps in understanding which parts of the tracks are active and can be used to further refine or adjust the motion paths in subsequent processing steps. It is particularly useful when working with complex animations where certain tracks need to be selectively visible.

GenerateTracks Usage Tips:

  • Ensure that the track_coords input is correctly formatted as a JSON string to avoid parsing errors and ensure accurate track generation.
  • Utilize the track_mask input to control the visibility of specific tracks, allowing for more complex and dynamic animations by selectively activating or deactivating parts of the motion paths.

GenerateTracks Common Errors and Solutions:

JSONDecodeError

  • Explanation: This error occurs when the track_coords input is not a valid JSON string, preventing the node from parsing the track data.
  • Solution: Verify that the track_coords input is correctly formatted as a JSON string, ensuring that all quotes are properly escaped and the structure is valid.

Unexpected format

  • Explanation: This error arises when the parsed track data does not match the expected format, such as missing required fields like x and y.
  • Solution: Check the structure of the input data to ensure it contains the necessary fields and is organized as a list of tracks or a single track wrapped in a list.

GenerateTracks Related Nodes

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

GenerateTracks