Visit ComfyUI Online for ready-to-use ComfyUI environment
Analyze keyframe values for statistical metrics within specified frame range, aiding AI artists in animations and visualizations.
SaltKeyframeMetrics is a node designed to analyze and compute various statistical metrics from a list of keyframe values within a specified range of frames. This node is particularly useful for AI artists working with animations or audio visualizations, as it provides essential metrics such as minimum, maximum, sum, average, absolute sum, and absolute average of the keyframe values, along with the duration of the analyzed frames. By leveraging these metrics, you can gain deeper insights into the behavior and characteristics of your keyframe data, enabling more informed decisions and adjustments in your creative projects.
The schedule_list
parameter is a list of keyframe values that you want to analyze. This list represents the values at each frame in your animation or audio visualization. The function will compute various metrics based on the values within the specified frame range. Ensure that the list contains numerical values for accurate metric calculations.
The start_frame
parameter specifies the starting frame index for the analysis. It determines the beginning of the frame range within the schedule_list
that will be considered for metric computation. The default value is 0, meaning the analysis will start from the first frame. This parameter should be a non-negative integer.
The end_frame
parameter specifies the ending frame index for the analysis. It determines the end of the frame range within the schedule_list
that will be considered for metric computation. If set to -1, the analysis will include all frames up to the end of the schedule_list
. This parameter should be an integer, and if it exceeds the length of the schedule_list
, it will be adjusted to the list's length.
The frame_rate
parameter defines the frame rate of the animation or audio visualization. It is used to calculate the duration of the analyzed frames. The default value is 24.0 frames per second. This parameter should be a positive float value.
The value_min
output parameter represents the minimum value found within the specified frame range of the schedule_list
. This metric helps identify the lowest point in your keyframe data, which can be useful for understanding the range and behavior of your animation or audio visualization.
The value_max
output parameter represents the maximum value found within the specified frame range of the schedule_list
. This metric helps identify the highest point in your keyframe data, providing insights into the peak values of your animation or audio visualization.
The value_sum
output parameter represents the sum of all values within the specified frame range of the schedule_list
. This metric gives an overall total of the keyframe values, which can be useful for understanding the cumulative effect of the values over the analyzed frames.
The value_avg
output parameter represents the average value within the specified frame range of the schedule_list
. This metric provides the mean value of the keyframe data, offering insights into the central tendency of your animation or audio visualization.
The abs_sum
output parameter represents the sum of the absolute values within the specified frame range of the schedule_list
. This metric helps understand the total magnitude of the keyframe values, regardless of their direction (positive or negative).
The abs_avg
output parameter represents the average of the absolute values within the specified frame range of the schedule_list
. This metric provides the mean magnitude of the keyframe values, offering insights into the overall intensity of your animation or audio visualization.
The duration
output parameter represents the duration of the analyzed frames, calculated based on the frame_rate
. This metric helps understand the time span of the keyframe data within the specified frame range, providing context for the other computed metrics.
schedule_list
contains numerical values to avoid errors in metric computation.start_frame
and end_frame
parameters to focus the analysis on specific segments of your keyframe data, allowing for more targeted insights.frame_rate
parameter to match the frame rate of your animation or audio visualization for accurate duration calculations.a
is not a valid int, float, boolean, or schedule_list"a
is provided with an invalid type.a
is an integer, float, boolean, or a valid schedule list.b
is not a valid int, float, or boolean, or schedule_list"b
is provided with an invalid type.b
is an integer, float, boolean, or a valid schedule list.<type>
"<expr>
': <error_message>
"end_frame
is specified and greater than 0 if using 'z'.© Copyright 2024 RunComfy. All Rights Reserved.