ComfyUI  >  Nodes  >  Dream Project Animation Nodes >  📈 Triangle Event Curve

ComfyUI Node: 📈 Triangle Event Curve

Class Name

Triangle Event Curve [Dream]

Category
✨ Dream/🎥 animation/📈 curves
Author
Dream Project (Account age: 669 days)
Extension
Dream Project Animation Nodes
Latest Updated
7/1/2024
Github Stars
0.1K

How to Install Dream Project Animation Nodes

Install this extension via the ComfyUI Manager by searching for  Dream Project Animation Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Dream Project Animation Nodes 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

📈 Triangle Event Curve Description

Generate triangular waveform for modulating animation parameters with precise control over timing and amplitude for dynamic animations.

Triangle Event Curve [Dream]:

The Triangle Event Curve [Dream] node is designed to generate a triangular waveform that can be used to modulate various parameters over time in your animations. This node is particularly useful for creating smooth, cyclical transitions between two values, making it ideal for effects that require a gradual increase and decrease, such as pulsing lights or oscillating movements. By defining the peak and trough values, as well as the duration and center point of the waveform, you can precisely control the timing and amplitude of the curve, allowing for highly customizable and dynamic animations.

Triangle Event Curve [Dream] Input Parameters:

max_value

This parameter sets the maximum value of the triangle waveform. It determines the peak of the curve, which is the highest point the waveform will reach. The default value is 1.0, and it can be adjusted to any floating-point number to fit your specific needs.

min_value

This parameter sets the minimum value of the triangle waveform. It determines the trough of the curve, which is the lowest point the waveform will reach. The default value is 0.0, and it can be adjusted to any floating-point number to fit your specific needs.

width_seconds

This parameter defines the total duration of the triangle waveform in seconds. It controls how long it takes for the waveform to go from the minimum value to the maximum value and back to the minimum value. The default value is 1.0 seconds, with a minimum allowable value of 0.1 seconds.

center_seconds

This parameter specifies the center point of the triangle waveform in seconds. It determines the time at which the waveform reaches its peak value. The default value is 10.0 seconds, and it can be adjusted to any floating-point number to fit your specific timing requirements.

Triangle Event Curve [Dream] Output Parameters:

FLOAT

This output represents the current value of the triangle waveform at the given time. It is a floating-point number that varies between the specified min_value and max_value based on the current time and the defined waveform parameters.

INT

This output is the integer representation of the current value of the triangle waveform. It is derived by rounding the FLOAT output to the nearest integer, providing a discrete value that can be used in scenarios where integer values are required.

Triangle Event Curve [Dream] Usage Tips:

  • To create a smooth pulsing effect, set the width_seconds to a value that matches the desired pulse duration and adjust the center_seconds to control the timing of the peak.
  • Use the max_value and min_value parameters to define the amplitude of the waveform, ensuring that the values fit within the range required for your specific animation.

Triangle Event Curve [Dream] Common Errors and Solutions:

"Invalid width_seconds value"

  • Explanation: The width_seconds parameter is set to a value less than the minimum allowed (0.1 seconds).
  • Solution: Ensure that the width_seconds parameter is set to a value of 0.1 seconds or greater.

"Invalid center_seconds value"

  • Explanation: The center_seconds parameter is set to a negative value.
  • Solution: Ensure that the center_seconds parameter is set to a non-negative value.

"Invalid max_value or min_value"

  • Explanation: The max_value or min_value parameters are set to non-numeric values.
  • Solution: Ensure that both max_value and min_value parameters are set to valid floating-point numbers.

📈 Triangle Event Curve Related Nodes

Go back to the extension to check out more related nodes.
Dream Project Animation Nodes
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.