ComfyUI > Nodes > camera-comfyUI > LoadTrajectory

ComfyUI Node: LoadTrajectory

Class Name

LoadTrajectory

Category
Camera/Trajectory
Author
Alexankharin (Account age: 2779days)
Extension
camera-comfyUI
Latest Updated
2025-12-26
Github Stars
0.03K

How to Install camera-comfyUI

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

LoadTrajectory Description

Loads trajectory data from `.npy` files into (N,4,4) tensors for animation and camera work.

LoadTrajectory:

The LoadTrajectory node is designed to facilitate the loading of trajectory data from a .npy file into a tensor format, specifically shaped as (N,4,4). This node is particularly useful for AI artists and developers working with camera movements or animations, as it allows for the seamless integration of pre-defined trajectory paths into their projects. By converting trajectory data into a tensor, the node enables efficient manipulation and processing within the ComfyUI environment, enhancing the creative possibilities for dynamic camera work and animation sequences. The primary goal of this node is to streamline the workflow of incorporating complex motion paths into visual projects, making it an essential tool for those looking to add depth and realism to their animations.

LoadTrajectory Input Parameters:

trajectory_file

The trajectory_file parameter is crucial as it specifies the path to the .npy file containing the trajectory data you wish to load. This file should be located in the ComfyUI input directory. The parameter is designed to accept a file chooser input, allowing you to easily select the desired file from your input folder. The trajectory data within this file is expected to be in a specific format that the node can interpret and convert into a tensor. Ensuring the correct file is selected is vital for the node to function properly, as it directly impacts the trajectory data that will be loaded and used in your project.

LoadTrajectory Output Parameters:

loaded_trajectory

The loaded_trajectory output parameter represents the tensor containing the trajectory data loaded from the specified .npy file. This tensor is formatted as (N,4,4), where N corresponds to the number of trajectory points. The output is crucial for further processing and manipulation within the ComfyUI environment, allowing you to apply the trajectory data to camera movements or other animation elements. Understanding the structure and content of this tensor is essential for effectively utilizing the trajectory data in your creative projects.

LoadTrajectory Usage Tips:

  • Ensure that the .npy file you select contains trajectory data formatted correctly as (N,4,4) to avoid errors during loading.
  • Utilize the file chooser feature to easily navigate and select the appropriate trajectory file from your input directory, ensuring a smooth workflow.

LoadTrajectory Common Errors and Solutions:

Invalid trajectory file: <trajectory_file>

  • Explanation: This error occurs when the specified trajectory file does not exist in the input directory or is not accessible.
  • Solution: Verify that the file path is correct and that the file is located in the designated input directory. Ensure the file is not corrupted and is in the expected .npy format.

File not found or inaccessible

  • Explanation: This error indicates that the node cannot locate the specified .npy file, possibly due to incorrect file path or permissions.
  • Solution: Double-check the file path and ensure that the file permissions allow for reading. Confirm that the file is present in the input directory and is not being used by another process.

LoadTrajectory Related Nodes

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

LoadTrajectory