Visit ComfyUI Online for ready-to-use ComfyUI environment
Smoothly interpolate values over frames for controlled linear progression in animation and procedural generation.
The Linear Curve [Dream] node is designed to create a smooth, linear transition between two values over a specified number of frames. This node is particularly useful in animation and procedural generation, where you need to interpolate between an initial and a final value in a controlled manner. By leveraging the frame counter, the node calculates the intermediate values, ensuring a consistent and predictable progression. This can be beneficial for creating gradual changes in animations, such as fading effects, moving objects, or any scenario where a linear interpolation is required.
This parameter sets the starting point of the linear curve. It is a floating-point number with a default value of 0.0. The initial value represents the value at the beginning of the animation or the first frame. Adjusting this value will shift the starting point of the interpolation.
This parameter defines the endpoint of the linear curve. It is a floating-point number with a default value of 100.0. The final value represents the value at the end of the animation or the last frame. Modifying this value will change the target value that the curve will reach by the end of the specified frames.
The frame counter is a shared type that tracks the progress of the animation in terms of frames. It is essential for calculating the intermediate values between the initial and final values. The frame counter ensures that the interpolation is spread evenly across the specified number of frames, providing a smooth transition.
This output represents the interpolated value as a floating-point number. It provides the precise value at the current frame, calculated based on the initial value, final value, and the progress tracked by the frame counter. This output is useful for scenarios where exact values are required for further calculations or adjustments.
This output represents the interpolated value rounded to the nearest integer. It provides a simplified version of the FLOAT output, which can be useful for scenarios where integer values are needed, such as indexing or discrete steps in an animation.
initial_value
and final_value
parameters to your desired start and end points.frame_counter
to control the duration of the transition. Ensure that the frame counter is properly configured to match the length of your animation.initial_value
and final_value
settings to achieve various effects, such as fading in or out, moving objects, or changing properties over time.initial_value
and final_value
are set to valid floating-point numbers. Avoid using non-numeric values or leaving the fields empty.© Copyright 2024 RunComfy. All Rights Reserved.