Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform operations between 2D vector and float, aiding AI artists in manipulating vector data for projects.
The CM_Vec2FloatOperation_JK
node is designed to perform operations between a 2D vector (Vec2) and a floating-point number. This node is particularly useful for AI artists who need to manipulate vector data in their projects, such as adjusting the scale or applying transformations to 2D coordinates. By leveraging this node, you can easily apply mathematical operations to vectors, enhancing the flexibility and control over your vector-based data. The node simplifies complex vector manipulations, making it accessible even if you don't have a deep technical background.
This parameter specifies the operation to be performed between the Vec2 and the float. It is a required parameter and accepts a list of predefined operations. The available operations are defined in the VEC_FLOAT_OPERATION
dictionary. The choice of operation will determine how the vector and the float interact, such as addition, subtraction, multiplication, or division. Selecting the appropriate operation is crucial for achieving the desired transformation on the vector.
This parameter represents the 2D vector (Vec2) that will be used in the operation. It is a required parameter and should be provided in the form of a tuple or list containing two numerical values. The vector a
serves as the primary data that will be manipulated by the chosen operation. The default value for this parameter is DEFAULT_VEC2
, which typically represents a standard or initial vector configuration.
This parameter represents the floating-point number that will be used in the operation with the Vec2. It is a required parameter and should be provided as a single numerical value. The float b
acts as the secondary data that will interact with the vector a
based on the selected operation. The default value for this parameter is DEFAULT_FLOAT
, which usually represents a standard or initial float value.
The output of this node is a 2D vector (Vec2) that results from the operation between the input vector a
and the float b
. This output vector reflects the transformation applied based on the chosen operation, providing you with the modified vector data. The resulting Vec2 can be used in subsequent nodes or processes within your project, enabling further manipulation or visualization of the vector data.
op
) you select is appropriate for the intended transformation of your vector data. For example, use multiplication to scale the vector or addition to translate it.a
and b
, verify that they align with your project's requirements to avoid unintended transformations.op
parameter is not recognized or not included in the VEC_FLOAT_OPERATION
dictionary.a
is not provided in the correct format (tuple or list with two numerical values).a
is specified as a tuple or list containing exactly two numerical values.b
is not a valid numerical value.b
is a valid number and not a string or other non-numeric type.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.