ComfyUI > Nodes > camera-comfyUI > CameraTrajectoryNode

ComfyUI Node: CameraTrajectoryNode

Class Name

CameraTrajectoryNode

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

CameraTrajectoryNode Description

Facilitates creation and manipulation of camera trajectories for dynamic virtual environments.

CameraTrajectoryNode:

The CameraTrajectoryNode is designed to facilitate the creation and manipulation of camera trajectories within a virtual environment. This node allows you to simulate various camera movements such as panning, zooming, and rotating, which can be crucial for generating dynamic and engaging visual content. By providing a range of customizable parameters, the node enables you to control the camera's position and movement with precision, enhancing the storytelling and visual appeal of your projects. The primary goal of this node is to offer a flexible and intuitive interface for defining camera paths, making it an essential tool for AI artists looking to add depth and motion to their creations.

CameraTrajectoryNode Input Parameters:

camera_pose

The camera_pose parameter determines the type of camera movement to be simulated. Options include "Static," "Pan Up," "Pan Down," "Pan Left," "Pan Right," "Zoom In," "Zoom Out," "Anti Clockwise (ACW)," and "ClockWise (CW)." The default setting is "Static," which keeps the camera stationary. Selecting different poses will alter the camera's trajectory, allowing for dynamic scene exploration.

width

The width parameter specifies the width of the camera's viewport in pixels. It has a default value of 832 and can range from a minimum of 16 to a maximum defined by the system's resolution capabilities. Adjusting this parameter affects the horizontal field of view and the aspect ratio of the captured scene.

height

The height parameter defines the height of the camera's viewport in pixels, with a default value of 480. Similar to the width, it can range from 16 to the system's maximum resolution. This parameter influences the vertical field of view and the overall aspect ratio of the output.

length

The length parameter indicates the duration or number of frames for the camera trajectory, with a default of 81 frames. It can be set from a minimum of 1 to the system's maximum resolution. This parameter controls the temporal aspect of the camera movement, affecting how long the camera takes to complete its path.

speed

The speed parameter adjusts the velocity of the camera movement, with a default value of 1.0. It can range from 0 to 10.0, allowing you to slow down or speed up the camera's trajectory. This parameter is optional and can be fine-tuned to achieve the desired pacing of the camera motion.

fx

The fx parameter represents the focal length in the x-direction, with a default value of 0.5. It ranges from 0 to 1 and is an advanced setting that influences the camera's perspective distortion. Adjusting this parameter can create effects such as wide-angle or telephoto views.

fy

The fy parameter is similar to fx but applies to the y-direction. It also has a default value of 0.5 and ranges from 0 to 1. This advanced setting allows for further control over the camera's perspective and can be used to achieve specific visual effects.

cx

The cx parameter defines the x-coordinate of the principal point, with a default value of 0.5. It ranges from 0 to 1 and is an advanced setting that affects the center of the camera's field of view. Adjusting this parameter can shift the camera's focus horizontally.

cy

The cy parameter specifies the y-coordinate of the principal point, with a default value of 0.5. Like cx, it ranges from 0 to 1 and is an advanced setting that influences the vertical alignment of the camera's field of view. This parameter can be used to adjust the camera's focus vertically.

CameraTrajectoryNode Output Parameters:

NodeOutput

The NodeOutput parameter provides the resulting camera trajectory data, which includes the calculated positions and orientations of the camera over the specified duration. This output is crucial for rendering the camera's movement within the virtual environment, allowing you to visualize and refine the trajectory as needed.

CameraTrajectoryNode Usage Tips:

  • Experiment with different camera_pose options to find the most suitable movement for your scene, enhancing the narrative and visual interest.
  • Adjust the speed parameter to synchronize the camera movement with other elements in your project, ensuring a cohesive and engaging experience.
  • Utilize the advanced parameters fx, fy, cx, and cy to fine-tune the camera's perspective and focus, achieving specific artistic effects.

CameraTrajectoryNode Common Errors and Solutions:

Invalid Resolution

  • Explanation: The specified width or height exceeds the system's maximum resolution.
  • Solution: Ensure that the width and height parameters are within the allowable range defined by your system's capabilities.

Unsupported Camera Pose

  • Explanation: An invalid option was selected for the camera_pose parameter.
  • Solution: Choose a valid option from the provided list of camera poses to ensure proper execution.

Negative Speed Value

  • Explanation: The speed parameter was set to a negative value, which is not supported.
  • Solution: Set the speed parameter to a value between 0 and 10.0 to ensure correct camera movement.

CameraTrajectoryNode 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.

CameraTrajectoryNode