ComfyUI > Nodes > ComfyUI > Create Hook Keyframes Interp.

ComfyUI Node: Create Hook Keyframes Interp.

Class Name

CreateHookKeyframesInterpolated

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 Interp. Description

Facilitates creation of interpolated keyframes for smooth transitions in animations/effects.

Create Hook Keyframes Interp.:

The CreateHookKeyframesInterpolated node is designed to facilitate the creation of a series of keyframes with interpolated strength values over a specified range. This node is particularly useful for artists and developers who need to automate the process of generating smooth transitions between different states or effects in their projects. By leveraging interpolation methods, this node allows you to define a starting and ending strength, and then automatically calculates the intermediate values, ensuring a seamless progression. This capability is essential for creating dynamic animations or effects that require gradual changes over time, enhancing the visual appeal and fluidity of your work.

Create Hook Keyframes Interp. Input Parameters:

strength_start

This parameter defines the initial strength value for the first keyframe in the sequence. It sets the baseline from which the interpolation will begin. The minimum value is 0.0, the maximum is 10.0, and the default is 1.0. Adjusting this value will affect the starting intensity of the effect or animation.

strength_end

This parameter specifies the final strength value for the last keyframe in the sequence. It determines the endpoint of the interpolation. The minimum value is 0.0, the maximum is 10.0, and the default is 1.0. This value influences the ending intensity of the effect or animation.

interpolation

This parameter allows you to choose the method of interpolation to be used between the start and end strengths. The available options are defined in comfy.hooks.InterpolationMethod._LIST. The choice of interpolation method affects how the intermediate values are calculated, impacting the smoothness and style of the transition.

start_percent

This parameter sets the starting point of the interpolation as a percentage of the total duration. The minimum value is 0.0, the maximum is 1.0, and the default is 0.0. It determines when the interpolation begins within the timeline of the effect or animation.

end_percent

This parameter defines the ending point of the interpolation as a percentage of the total duration. The minimum value is 0.0, the maximum is 1.0, and the default is 1.0. It specifies when the interpolation concludes within the timeline.

keyframes_count

This parameter indicates the number of keyframes to be generated between the start and end points. The minimum value is 2, the maximum is 100, and the default is 5. Increasing the number of keyframes results in a smoother transition, while fewer keyframes create a more abrupt change.

This boolean parameter, with a default value of False, determines whether the generated keyframes should be printed to the log. Enabling this option can be useful for debugging or verifying the keyframe values during development.

prev_hook_kf

This optional parameter allows you to provide an existing HOOK_KEYFRAMES object to which the new keyframes will be added. If not provided, a new keyframe group will be created. This parameter is useful for building upon previously defined keyframes.

Create Hook Keyframes Interp. Output Parameters:

HOOK_KF

The output is a HOOK_KEYFRAMES object that contains the generated keyframes with interpolated strength values. This output can be used in subsequent nodes or processes to apply the defined transitions or effects. It encapsulates the entire sequence of keyframes, ready for integration into your project.

Create Hook Keyframes Interp. Usage Tips:

  • Experiment with different interpolation methods to achieve the desired transition style, as each method can produce unique effects.
  • Use the print_keyframes option during development to verify the generated keyframes and ensure they meet your expectations.
  • Adjust the keyframes_count to balance between performance and smoothness, as more keyframes can lead to smoother transitions but may require more processing.

Create Hook Keyframes Interp. Common Errors and Solutions:

Invalid interpolation method

  • Explanation: The specified interpolation method is not recognized or supported.
  • Solution: Ensure that the interpolation method is selected from the available options in comfy.hooks.InterpolationMethod._LIST.

Keyframes count out of range

  • Explanation: The specified number of keyframes is outside the allowed range.
  • Solution: Adjust the keyframes_count parameter to be within the range of 2 to 100.

Strength values out of bounds

  • Explanation: The strength_start or strength_end values are outside the permissible range.
  • Solution: Ensure that both strength values are between 0.0 and 10.0.

Create Hook Keyframes Interp. 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.