Visit ComfyUI Online for ready-to-use ComfyUI environment
Evaluate unary conditions on 3D vectors for validation and filtering based on specific criteria, returning boolean results.
The CM_Vec3UnaryCondition JK
node is designed to evaluate a unary condition on a 3-dimensional vector (Vec3). This node allows you to apply a specific unary operation to a vector and determine if the condition is met, returning a boolean result. It is particularly useful in scenarios where you need to validate or filter vectors based on certain criteria, such as checking if all components of the vector are positive or if the vector's magnitude exceeds a certain threshold. By leveraging this node, you can streamline your workflow and ensure that your vector data meets the required conditions before proceeding with further processing or visualization.
The op
parameter specifies the unary operation to be applied to the vector. It is a string that must match one of the keys in the VEC_UNARY_CONDITIONS
dictionary. This parameter determines the specific condition that will be evaluated on the vector. The available options for this parameter are predefined and can include operations such as checking if all components are non-negative, if the vector is normalized, or other similar conditions. The exact list of operations can be found in the VEC_UNARY_CONDITIONS
dictionary. This parameter is required for the node to function correctly.
The a
parameter represents the input vector (Vec3) on which the unary condition will be evaluated. It is a 3-dimensional vector with default values provided by DEFAULT_VEC3
. This vector serves as the primary input for the unary operation specified by the op
parameter. The components of the vector can be any real numbers, and the specific values will impact the result of the unary condition. This parameter is required for the node to function correctly.
The output of the CM_Vec3UnaryCondition JK
node is a boolean value, indicating whether the specified unary condition on the input vector a
is met. If the condition is satisfied, the output will be True
; otherwise, it will be False
. This boolean result can be used to make decisions in your workflow, such as filtering vectors, triggering events, or controlling the flow of data based on the condition's outcome.
op
parameter is set to a valid operation from the VEC_UNARY_CONDITIONS
dictionary to avoid errors and ensure the correct condition is evaluated.op
parameter does not match any key in the VEC_UNARY_CONDITIONS
dictionary.op
parameter is set to a valid operation from the VEC_UNARY_CONDITIONS
dictionary.a
parameter is not a valid 3-dimensional vector.a
parameter is a valid Vec3 with three numerical components.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.