Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply dynamic 2D transformations to image batches for enhanced visual effects and storytelling.
The Batch2d Transform (mtb) node is designed to apply a series of 2D transformations to a batch of images using a set of keyframes. This node is particularly useful for AI artists who want to create dynamic and complex visual effects by manipulating image properties such as position, rotation, zoom, and shear over time. By leveraging this node, you can achieve smooth transitions and animations in your image sequences, enhancing the visual appeal and storytelling of your projects. The node's primary goal is to provide a flexible and powerful tool for batch processing images, allowing you to experiment with various transformation parameters to achieve the desired artistic effects.
This parameter expects an image tensor that represents the batch of images you want to transform. The images should be in a format compatible with PyTorch tensors.
This parameter determines how the borders of the images are handled during the transformation. The available options are "edge", "constant", "reflect", and "symmetric". The default value is "edge". Choosing the appropriate border handling method can affect the appearance of the transformed images, especially at the edges.
This parameter specifies the color used when the border_handling
parameter is set to "constant". The default value is "#000000" (black). This color will fill any areas that extend beyond the original image boundaries during the transformation.
This optional parameter is a list of float values representing the x-axis translations for each frame in the batch. These values determine how much each image is shifted horizontally.
This optional parameter is a list of float values representing the y-axis translations for each frame in the batch. These values determine how much each image is shifted vertically.
This optional parameter is a list of float values representing the zoom levels for each frame in the batch. These values determine the scaling factor applied to each image, allowing you to zoom in or out.
This optional parameter is a list of float values representing the rotation angles for each frame in the batch. These values determine the degree of rotation applied to each image.
This optional parameter is a list of float values representing the shear factors for each frame in the batch. These values determine the amount of skew applied to each image.
The output parameter is an image tensor that represents the batch of transformed images. This tensor contains the images after applying the specified 2D transformations, such as translation, rotation, zoom, and shear, based on the input parameters.
x
, y
, zoom
, angle
, and shear
parameters to create unique and dynamic visual effects in your image sequences.border_handling
parameter to control how the edges of your images are treated during transformations, especially if you notice unwanted artifacts at the borders.constant
border handling option, choose a constant_color
that complements your images to maintain visual consistency.x
, y
, zoom
, angle
, shear
) do not match the number of frames in the batch.border_handling
parameter is not one of the supported options.constant_color
parameter is not in a valid color format.constant_color
is specified in a valid hex color format, such as "#RRGGBB".© Copyright 2024 RunComfy. All Rights Reserved.