ComfyUI > Nodes > ComfyUI > Create Hook Keyframes From Floats

ComfyUI Node: Create Hook Keyframes From Floats

Class Name

CreateHookKeyframesFromFloats

Category
advanced/hooks/scheduling
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Create Hook Keyframes From Floats Description

Facilitates keyframe creation from float values for precise parameter changes over time in animations and transitions.

Create Hook Keyframes From Floats:

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.

Create Hook Keyframes From Floats Input Parameters:

floats_strength

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.

start_percent

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.

end_percent

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.

prev_hook_kf

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.

Create Hook Keyframes From Floats Output Parameters:

HOOK_KF

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.

Create Hook Keyframes From Floats Usage Tips:

  • To achieve smooth transitions, ensure that the 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.
  • Utilize the 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.

Create Hook Keyframes From Floats Common Errors and Solutions:

"floats_strength must be either an iterable input or a float"

  • Explanation: This error occurs when the floats_strength parameter is not provided as a float or an iterable (like a list).
  • Solution: Ensure that you input either a single float value or a list of floats for the floats_strength parameter.

"TypeError: 'NoneType' object is not iterable"

  • Explanation: This error may occur if the floats_strength parameter is not properly initialized or is set to None.
  • Solution: Double-check that the floats_strength parameter is correctly set to a float or a list of floats before executing the node.

Create Hook Keyframes From Floats Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.