Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates keyframe creation from float values for precise parameter changes over time in animations and transitions.
The CreateHookKeyframesFromFloats
node is designed to facilitate the creation of keyframes based on a series of float values, which represent varying strengths over a specified range. This node is particularly useful for artists and developers who need to automate or schedule changes in parameters over time, such as animating effects or transitions. By converting a list of float values into keyframes, this node allows for precise control over the timing and intensity of changes, making it an essential tool for complex animations or procedural content generation. The node interpolates these values linearly between a defined start and end percentage, ensuring smooth transitions. Additionally, it can integrate with existing keyframe groups, allowing for seamless updates and modifications to ongoing projects.
This parameter accepts either a single float or a list of floats, representing the strength values to be converted into keyframes. If a single float is provided, it is automatically converted into a list. These values dictate the intensity of each keyframe, influencing how strong the effect or transition will be at each point. The default value is -1, with a minimum step of 0.001, and it is mandatory to provide input for this parameter.
This float parameter defines the starting point of the interpolation range as a percentage of the total duration. It determines where the first keyframe will be placed in the timeline. The value ranges from 0.0 to 1.0, with a default of 0.0, allowing for precise control over when the keyframe sequence begins.
Similar to start_percent
, this float parameter specifies the endpoint of the interpolation range. It marks where the last keyframe will be positioned. The range is from 0.0 to 1.0, with a default value of 1.0, ensuring that the keyframes can span the entire duration or a specific segment as needed.
This boolean parameter, when set to true, enables the logging of keyframe details to the console. This feature is useful for debugging or verifying the keyframe creation process, allowing you to see the exact strength and timing of each keyframe. The default value is false.
An optional parameter that accepts an existing HOOK_KEYFRAMES
group. If provided, the new keyframes will be added to this group, allowing for the continuation or modification of an existing keyframe sequence. If not provided, a new keyframe group is created.
The output is a HOOK_KEYFRAMES
group, which contains the newly created keyframes. This group can be used in conjunction with other nodes or systems to apply the scheduled changes defined by the keyframes. It encapsulates the timing and strength information, making it easy to integrate into larger workflows or animations.
floats_strength
list is carefully crafted to reflect the desired changes over time. Consider using a gradual increase or decrease in values for more natural animations.print_keyframes
option during development to verify that keyframes are being created as expected. This can help identify any discrepancies in the timing or strength values early in the process.floats_strength
parameter is not provided as a float or an iterable (like a list).floats_strength
parameter.floats_strength
parameter is not properly initialized or is set to None
.floats_strength
parameter is correctly set to a float or a list of floats before executing the node.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.