ComfyUI > Nodes > ComfyUI > Create Hook Keyframe

ComfyUI Node: Create Hook Keyframe

Class Name

CreateHookKeyframe

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 Keyframe Description

Facilitates keyframe creation in hook scheduling for animation and procedural tasks, allowing dynamic parameter application over time.

Create Hook Keyframe:

The CreateHookKeyframe node is designed to facilitate the creation of keyframes within a hook scheduling system, which is particularly useful in advanced animation or procedural generation tasks. This node allows you to define specific points in time, known as keyframes, where certain parameters or effects are applied with varying strengths. By using this node, you can create a sequence of keyframes that dictate how an effect evolves over time, providing a powerful tool for artists to control the dynamics of their animations or procedural effects. The node is experimental, indicating that it may be subject to changes or improvements, but it offers a robust framework for managing complex scheduling tasks in creative projects.

Create Hook Keyframe Input Parameters:

strength_mult

The strength_mult parameter determines the intensity or magnitude of the effect applied at the keyframe. It is a floating-point value that can range from -20.0 to 20.0, with a default value of 1.0. This parameter allows you to control how strong the effect should be at the specific keyframe, enabling you to create subtle or dramatic changes in your animation or procedural effect.

start_percent

The start_percent parameter specifies the starting point of the keyframe as a percentage of the total animation or effect duration. It is a floating-point value ranging from 0.0 to 1.0, with a default value of 0.0. This parameter helps you position the keyframe within the timeline, allowing for precise control over when the effect should begin to take place.

prev_hook_kf

The prev_hook_kf parameter is optional and represents a group of previously created hook keyframes. If provided, the new keyframe will be added to this existing group, allowing for the continuation or modification of an existing sequence of keyframes. This parameter is useful for building upon or refining a series of keyframes without starting from scratch.

Create Hook Keyframe Output Parameters:

HOOK_KF

The HOOK_KF output parameter represents the group of hook keyframes that includes the newly created keyframe. This output is crucial as it provides the updated sequence of keyframes that can be used in subsequent nodes or processes. It encapsulates the timing and strength information of all keyframes, enabling the smooth execution of the scheduled effects or animations.

Create Hook Keyframe Usage Tips:

  • To create a smooth transition between effects, carefully adjust the strength_mult and start_percent parameters to ensure that keyframes are evenly distributed and appropriately scaled in strength.
  • Utilize the prev_hook_kf parameter to build complex sequences of keyframes incrementally, allowing for iterative refinement and testing of your animation or procedural effect.

Create Hook Keyframe Common Errors and Solutions:

Invalid strength_mult value

  • Explanation: The strength_mult value is outside the allowed range of -20.0 to 20.0.
  • Solution: Ensure that the strength_mult value is within the specified range to avoid errors.

Invalid start_percent value

  • Explanation: The start_percent value is outside the allowed range of 0.0 to 1.0.
  • Solution: Adjust the start_percent value to be within the valid range to ensure proper keyframe placement.

prev_hook_kf is not a valid HookKeyframeGroup

  • Explanation: The prev_hook_kf parameter is not a valid instance of HookKeyframeGroup.
  • Solution: Verify that the prev_hook_kf parameter is correctly initialized as a HookKeyframeGroup before passing it to the node.

Create Hook Keyframe 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.