Update nodes.py

This commit is contained in:
Kijai 2024-04-26 18:26:07 +03:00
parent c7b3a85615
commit c1f2fca334

View File

@ -5214,7 +5214,6 @@ Converts different value lists/series to another type.
interpolated_pattern = [] interpolated_pattern = []
orig_float_values = float_values orig_float_values = float_values
for value in interpolation_curve: for value in interpolation_curve:
print(value)
min_val = min(orig_float_values) min_val = min(orig_float_values)
max_val = max(orig_float_values) max_val = max(orig_float_values)
# Normalize the values to [0, 1] # Normalize the values to [0, 1]
@ -5222,7 +5221,6 @@ Converts different value lists/series to another type.
# Interpolate the normalized values to the new frame count # Interpolate the normalized values to the new frame count
remapped_float_values = np.interp(np.linspace(0, 1, int(remap_to_frames * value)), np.linspace(0, 1, len(normalized_values)), normalized_values).tolist() remapped_float_values = np.interp(np.linspace(0, 1, int(remap_to_frames * value)), np.linspace(0, 1, len(normalized_values)), normalized_values).tolist()
interpolated_pattern.append(remapped_float_values) interpolated_pattern.append(remapped_float_values)
print(interpolated_pattern)
float_values = interpolated_pattern float_values = interpolated_pattern
else: else:
# Remap float_values to match target_frame_amount # Remap float_values to match target_frame_amount