Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates smooth transitions between floating-point values for animations and interpolations.
The CR Gradient Float node is designed to facilitate smooth transitions between two floating-point values over a specified duration. This node is particularly useful in animation and interpolation tasks where gradual changes in values are required. By defining a start value, an end value, and the duration over which the transition should occur, the node calculates the intermediate values for each frame, ensuring a seamless gradient effect. This capability is essential for creating dynamic and visually appealing animations, as it allows for precise control over the rate of change between values.
The initial value from which the gradient transition begins. This parameter sets the starting point of the interpolation. It is a floating-point number, and its value directly impacts the beginning of the gradient effect. There is no strict minimum or maximum value, but it should be chosen based on the desired range of the gradient.
The final value at which the gradient transition ends. This parameter sets the endpoint of the interpolation. It is a floating-point number, and its value determines the end of the gradient effect. Similar to the start_value, there is no strict minimum or maximum value, but it should be selected to achieve the desired gradient range.
The frame number at which the gradient transition starts. This integer parameter specifies the point in time when the interpolation should begin. It is crucial for synchronizing the gradient effect with the animation timeline. The minimum value is 0, and there is no maximum value, but it should be within the range of the animation frames.
The total number of frames over which the gradient transition occurs. This integer parameter defines the duration of the interpolation. It determines how quickly or slowly the transition from the start_value to the end_value happens. The minimum value is 1, and there is no maximum value, but it should be chosen based on the desired speed of the gradient effect.
The current frame number for which the gradient value is being calculated. This integer parameter is used to determine the intermediate value at a specific point in time during the animation. It should be within the range of the animation frames and is essential for calculating the correct gradient value.
A parameter that can be used to define the profile or shape of the gradient transition. While the specific options for this parameter are not detailed in the context, it typically allows for customization of the interpolation curve, such as linear, ease-in, ease-out, etc. This parameter enhances the flexibility and control over the gradient effect.
The calculated floating-point value at the current frame based on the gradient transition. This output represents the intermediate value between the start_value and end_value, providing a smooth transition over the specified frame duration. It is essential for creating dynamic animations and ensuring a seamless gradient effect.
A URL string that provides a link to the help documentation for the CR Gradient Float node. This output is useful for users who need additional information or guidance on using the node effectively. It directs users to a detailed wiki page with explanations and examples.
"current_frame < start_frame"
"current_frame > start_frame + frame_duration"
© Copyright 2024 RunComfy. All Rights Reserved.