ComfyUI > Nodes > KJNodes for ComfyUI > Spline Editor

ComfyUI Node: Spline Editor

Class Name

SplineEditor

Category
KJNodes/weights
Author
kijai (Account age: 2192days)
Extension
KJNodes for ComfyUI
Latest Updated
2024-06-25
Github Stars
0.35K

How to Install KJNodes for ComfyUI

Install this extension via the ComfyUI Manager by searching for KJNodes for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter KJNodes for 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Spline Editor Description

Graphical tool for creating and editing smooth curves with control points for value manipulation in schedules and masks.

Spline Editor:

The SplineEditor node is a graphical tool designed to help you create and manipulate values for various schedules and mask batches. This node allows you to visually edit splines, which are smooth curves defined by control points, to generate a series of values that can be used in different contexts such as animation schedules or mask generation. The SplineEditor provides an intuitive interface where you can add, move, and delete control points to shape the spline according to your needs. It supports different interpolation methods to ensure smooth transitions between points, and it can output the generated values in various formats, making it versatile for different applications. This node is particularly useful for tasks that require precise control over value transitions, such as animating parameters over time or creating complex masks for image processing.

Spline Editor Input Parameters:

conditioning_to

This parameter specifies the conditioning input, which is used to determine the context or conditions under which the spline values will be applied. It is a required input and ensures that the generated values are appropriately conditioned for the intended use.

latents

The latents input is used to calculate the batch size for the generated values. This is essential for applications that require batch processing, ensuring that the spline values are generated for each item in the batch.

clip

This input connects to your standard text encoder, typically used in conjunction with the main prompt. It ensures that the generated values are aligned with the encoded text, providing consistency in applications like text-based animations.

gligen_textbox_model

This parameter connects to the GLIGEN Loader, which is necessary for scheduling GLIGEN text box positions. It ensures that the spline values are compatible with the GLIGEN model, facilitating seamless integration.

coordinates

The coordinates input takes a JSON string of points, which are directly compatible with the spline editor node. This allows you to import predefined points to shape the spline, providing flexibility in how you define the control points.

text

This input is the part of the prompt for which you want to set the position. It allows you to specify the text that will be positioned according to the generated spline values, making it useful for text-based animations.

width

The width parameter defines the size of the GLIGEN bounding box in the horizontal direction. It has a default value of 128, with a minimum of 8 and a maximum of 4096, adjustable in steps of 8. This allows you to control the horizontal size of the bounding box for the generated values.

height

The height parameter defines the size of the GLIGEN bounding box in the vertical direction. Similar to the width, it has a default value of 128, with a minimum of 8 and a maximum of 4096, adjustable in steps of 8. This allows you to control the vertical size of the bounding box for the generated values.

size_multiplier

This optional parameter allows you to apply a multiplier to the size of the generated values. It has a default value of 1.0 and can be adjusted to scale the size of the output values, providing additional control over the final result.

Spline Editor Output Parameters:

conditioning

The conditioning output provides the conditioned values generated by the spline editor. These values are ready to be used in conjunction with other nodes that require conditioned inputs, ensuring seamless integration into your workflow.

coord_preview

The coord_preview output is an optional preview of the coordinates and bounding boxes generated by the spline editor. This allows you to visualize the generated values and make adjustments as needed before applying them to your final application.

Spline Editor Usage Tips:

  • Use Shift + click to add a control point at the end of the spline, allowing you to extend the curve smoothly.
  • Use Ctrl + click to add a control point between two existing points, enabling you to refine the shape of the spline with precision.
  • Right-click on a point to delete it, but note that you cannot delete the start or end points, ensuring the spline remains anchored.
  • Right-click on the canvas to access the context menu, where you can toggle handle visibility and display sample points for better visualization.

Spline Editor Common Errors and Solutions:

"Invalid JSON string for coordinates"

  • Explanation: The coordinates input must be a valid JSON string. This error occurs if the provided string is not properly formatted.
  • Solution: Ensure that the coordinates input is a correctly formatted JSON string. Use a JSON validator to check the syntax.

"Batch size mismatch"

  • Explanation: The latents input determines the batch size, and this error occurs if there is a mismatch between the expected and provided batch sizes.
  • Solution: Verify that the latents input correctly reflects the batch size required for your application. Adjust the input to match the expected batch size.

"GLIGEN model not found"

  • Explanation: This error occurs if the GLIGEN model is not properly connected or installed.
  • Solution: Ensure that the GLIGEN model is installed and connected correctly. You can download the model from the provided link if necessary.

"Invalid width or height value"

  • Explanation: The width and height parameters must be within the specified range (8 to 4096) and in steps of 8.
  • Solution: Check that the width and height values are within the allowed range and adjust them accordingly. Use the step increments to set valid values.

Spline Editor Related Nodes

Go back to the extension to check out more related nodes.
KJNodes for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.