The CS Transform node is a custom node for ComfyUI that applies a series of transformations to an input image and mask. The transformations include scaling, rotation, and translation, all centered around a specified pivot point. The node ensures that the transformed image is properly accommodated within a canvas, which can be expanded if needed.
The CS Transform
node is a custom node for ComfyUI that applies a series of transformations to an input image and mask. The transformations include scaling, rotation, and translation, all centered around a specified pivot point. The node ensures that the transformed image is properly accommodated within a canvas, which can be expanded if needed.
Adding the Node:
To add the CS Transform
node to your ComfyUI pipeline, ensure you have placed the transform_node.py
file in the appropriate directory within your ComfyUI installation.
Configuring Inputs: Configure the inputs as required. You can provide an image, mask, and canvas. Specify the transformation parameters including position, pivot point, rotation, and scale.
Executing the Node: Execute the node to apply the transformations. The transformed image and mask will be produced as outputs.
Visualizing the Pivot Point:
Enable the show_pivot
option to display a red dot at the pivot point on the transformed image. This can help you verify the pivot point's position after transformations.