ComfyUI > Nodes > ComfyUI_depthMapOperation > Transform Points

ComfyUI Node: Transform Points

Class Name

TransformPoints

Category
depthMapOperation
Author
chri002 (Account age: 2259days)
Extension
ComfyUI_depthMapOperation
Latest Updated
2025-05-27
Github Stars
0.01K

How to Install ComfyUI_depthMapOperation

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

Transform Points Description

Apply 3D transformations to points for depth map operations and 3D rendering, enabling precise spatial control in workflows.

Transform Points:

The TransformPoints node is designed to apply 3D transformations to a set of points, which is particularly useful in the context of depth map operations and 3D rendering. This node allows you to manipulate points in a 3D space by applying transformations such as translation, rotation, and scaling. These transformations are applied in a specific order, starting with scaling, followed by rotation, and finally translation. This sequence ensures that the points are accurately transformed in the 3D space, maintaining their relative positions and orientations. The primary benefit of using this node is its ability to seamlessly integrate 3D transformations into workflows that involve point cloud data, making it an essential tool for AI artists working with 3D models and depth maps. By leveraging this node, you can achieve precise control over the spatial configuration of your 3D data, enabling more dynamic and visually appealing results in your projects.

Transform Points Input Parameters:

points

The points parameter represents the set of 3D points that you want to transform. This input is typically a NumPy array or a similar data structure that contains the coordinates of each point in the 3D space. The transformation operations will be applied to these points, altering their positions based on the specified translation, rotation, and scaling parameters.

translate

The translate parameter is a tuple of three values representing the translation vector in the x, y, and z directions. This parameter shifts the points in the 3D space by the specified amounts along each axis. The default value is (0, 0, 0), meaning no translation is applied. Adjusting these values allows you to move the entire set of points to a new location in the 3D space.

rotate

The rotate parameter is a tuple of three values representing the rotation angles around the x, y, and z axes, respectively. These angles are typically specified in radians. The default value is (0, 0, 0), indicating no rotation. By modifying these values, you can rotate the points around the specified axes, changing their orientation in the 3D space.

scale

The scale parameter is a tuple of three values representing the scaling factors along the x, y, and z axes. The default value is (1, 1, 1), which means no scaling is applied. This parameter allows you to resize the points, either enlarging or shrinking them, by the specified factors along each axis.

Transform Points Output Parameters:

transformed_points

The transformed_points output is the result of applying the specified transformations to the input points. This output is typically a NumPy array or a similar data structure containing the new coordinates of each point after the transformations. The transformed points reflect the changes in position, orientation, and size as dictated by the input parameters, providing you with a modified set of points that can be used for further processing or visualization.

Transform Points Usage Tips:

  • To achieve a specific orientation of your 3D model, adjust the rotate parameter carefully, keeping in mind that the angles are in radians. You can use the math.radians() function to convert degrees to radians if needed.
  • When working with large point clouds, consider applying transformations in smaller increments to ensure that the changes are visually acceptable and do not distort the model.
  • Use the scale parameter to uniformly resize your model by setting all three values to the same factor, or apply non-uniform scaling by using different values for each axis to achieve specific effects.

Transform Points Common Errors and Solutions:

"ValueError: PLY format file error, it should be 'ascii' or 'binary_little_endian'"

  • Explanation: This error occurs when the input file format is not recognized as either 'ascii' or 'binary_little_endian', which are the expected formats for PLY files.
  • Solution: Ensure that the input file is a valid PLY file in either 'ascii' or 'binary_little_endian' format. You may need to convert the file to one of these formats using a suitable tool or script.

"IndexError: too many indices for array"

  • Explanation: This error can occur if the input points array has an unexpected shape or if the dimensions do not match the expected 3D coordinates.
  • Solution: Verify that the input points array is correctly formatted with three columns representing the x, y, and z coordinates. Reshape or adjust the array as necessary to match the expected format.

Transform Points Related Nodes

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