Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform numerical values between ranges for AI artists, ensuring precision and consistency in projects.
The Fit Number (mtb) node is designed to transform a list of numerical values from one range to another, making it an essential tool for AI artists who need to normalize or scale data for various creative applications. This node is particularly useful when you need to adjust values to fit within a specific target range, ensuring consistency and precision in your projects. By leveraging this node, you can easily map values from a source range to a target range, with options to clamp values and apply easing functions for smooth transitions. This functionality is crucial for tasks that require precise control over numerical data, such as adjusting color values, scaling dimensions, or normalizing input parameters for machine learning models.
This parameter is a list of float values that you want to transform. The values represent the numerical data that will be mapped from the source range to the target range. The accuracy and consistency of the transformation depend on the values provided in this list.
This boolean parameter determines whether the transformed values should be clamped within the target range. If set to True
, any values that fall outside the target range will be adjusted to the nearest boundary value. This ensures that all output values remain within the specified target range, preventing any outliers.
This boolean parameter, when set to True
, automatically computes the source range based on the minimum and maximum values in the values
list. This is useful when you do not have predefined source range values and want the node to dynamically determine the range for you.
This float parameter specifies the minimum value of the source range. It is used as the lower boundary for the input values. If auto_compute_source
is set to True
, this value will be automatically determined and can be ignored.
This float parameter specifies the maximum value of the source range. It is used as the upper boundary for the input values. If auto_compute_source
is set to True
, this value will be automatically determined and can be ignored.
This float parameter defines the minimum value of the target range. It sets the lower boundary for the transformed values, ensuring that the output values do not fall below this limit.
This float parameter defines the maximum value of the target range. It sets the upper boundary for the transformed values, ensuring that the output values do not exceed this limit.
This string parameter specifies the easing function to be applied during the transformation. Easing functions control the rate of change of the values, allowing for smooth transitions. Common easing functions include linear, ease-in, ease-out, and ease-in-out, each providing a different type of interpolation.
This output parameter is a list of transformed float values. Each value in the list corresponds to an input value that has been mapped from the source range to the target range, optionally clamped, and adjusted according to the specified easing function. The transformed values are ready for use in subsequent nodes or processes, ensuring that they fit within the desired range and exhibit the desired transition behavior.
auto_compute_source
parameter to automatically determine the source range when working with dynamic or unknown input values.values
list is empty, and the node attempts to compute the source range.values
list contains at least one float value before executing the node.values
list, causing type mismatches during calculations.values
list are of type float and remove any non-float entries.linear
, ease-in
, ease-out
, or ease-in-out
.© Copyright 2024 RunComfy. All Rights Reserved.