ComfyUI > Nodes > camera-comfyUI > CameraMotionNode

ComfyUI Node: CameraMotionNode

Class Name

CameraMotionNode

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

CameraMotionNode Description

Simulates camera movements in virtual environments for dynamic video sequences.

CameraMotionNode:

The CameraMotionNode is designed to simulate camera movements within a virtual environment, providing a dynamic and realistic perspective for video sequences. This node is particularly beneficial for AI artists looking to add motion effects to their digital creations, enhancing the visual storytelling by mimicking real-world camera operations such as panning, zooming, and rotating. By leveraging mathematical transformations, the node calculates and applies a series of camera poses over time, creating smooth transitions and movements that can be customized to fit the desired artistic vision. This capability allows for the creation of engaging and immersive video content, making it an essential tool for artists aiming to elevate their work with professional-grade camera effects.

CameraMotionNode Input Parameters:

camera_pose

This parameter determines the type of camera movement to be applied. Options include "Static", "Pan Up", "Pan Down", "Pan Left", "Pan Right", "Zoom In", "Zoom Out", "Anti Clockwise (ACW)", and "ClockWise (CW)". The default is "Static", which means no movement. Selecting different options will simulate the corresponding camera motion, affecting how the scene is viewed over time.

width

This parameter sets the width of the video frame in pixels. It ranges from a minimum of 16 to a maximum defined by the system's maximum resolution, with a default value of 832. Adjusting the width impacts the aspect ratio and resolution of the output video, influencing the level of detail and field of view.

height

Similar to width, this parameter defines the height of the video frame in pixels. It also ranges from 16 to the system's maximum resolution, with a default of 480. The height, in conjunction with the width, determines the overall resolution and aspect ratio of the video, affecting the visual quality and composition.

length

This parameter specifies the duration of the camera motion sequence in frames. It ranges from 1 to the system's maximum resolution, with a default of 81 frames. The length determines how long the camera movement will last, influencing the pacing and timing of the video sequence.

speed

This optional parameter controls the speed of the camera movement, ranging from 0 to 10.0, with a default of 1.0. A higher speed value results in faster camera movements, while a lower value slows down the motion, allowing for more deliberate and gradual transitions.

fx

An advanced optional parameter that adjusts the focal length in the x-direction, ranging from 0 to 1, with a default of 0.5. This affects the perspective distortion and field of view, allowing for fine-tuning of the camera's optical characteristics.

fy

Similar to fx, this advanced optional parameter modifies the focal length in the y-direction, also ranging from 0 to 1, with a default of 0.5. It provides additional control over the camera's perspective and field of view, enabling precise adjustments to the visual output.

cx

This advanced optional parameter sets the principal point offset in the x-direction, ranging from 0 to 1, with a default of 0.5. It influences the center of the image projection, allowing for adjustments to the camera's alignment and framing.

cy

Like cx, this advanced optional parameter defines the principal point offset in the y-direction, ranging from 0 to 1, with a default of 0.5. It affects the vertical alignment of the image projection, providing further control over the camera's positioning and composition.

CameraMotionNode Output Parameters:

RT

The output parameter RT is a sequence of transformation matrices that represent the camera's position and orientation over time. Each matrix combines rotation and translation data, defining how the camera moves and changes its viewpoint throughout the sequence. This output is crucial for rendering the final video, as it dictates the camera's path and perspective, ensuring the desired motion effects are accurately applied.

CameraMotionNode Usage Tips:

  • Experiment with different camera_pose options to find the most suitable movement for your project, enhancing the narrative and visual impact.
  • Adjust the speed parameter to control the pacing of the camera motion, ensuring it aligns with the mood and tempo of your video content.
  • Utilize the fx, fy, cx, and cy parameters for advanced customization of the camera's optical properties, achieving unique visual effects and perspectives.

CameraMotionNode Common Errors and Solutions:

"Invalid resolution settings"

  • Explanation: This error occurs when the width or height parameters exceed the system's maximum resolution.
  • Solution: Ensure that both width and height are set within the allowed range, and adjust them to fit the system's capabilities.

"Unsupported camera pose option"

  • Explanation: This error is triggered when an invalid option is selected for the camera_pose parameter.
  • Solution: Verify that the camera_pose is set to one of the supported options: "Static", "Pan Up", "Pan Down", "Pan Left", "Pan Right", "Zoom In", "Zoom Out", "Anti Clockwise (ACW)", or "ClockWise (CW)".

"Speed value out of range"

  • Explanation: This error indicates that the speed parameter is set outside the permissible range of 0 to 10.0.
  • Solution: Adjust the speed value to fall within the specified range, ensuring it is neither too slow nor too fast for the intended effect.

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

CameraMotionNode