Visit ComfyUI Online for ready-to-use ComfyUI environment
Smooth oscillating motion effect using cosine wave function for dynamic animations with customizable intensity and frequency.
The DepthflowMotionCosine
node is designed to apply a smooth, oscillating motion effect to a specified target parameter using a cosine wave function. This node is particularly useful for creating dynamic animations where a rhythmic, wave-like motion is desired. By leveraging the mathematical properties of the cosine function, this node allows you to modulate the intensity and frequency of the motion, providing a versatile tool for enhancing visual effects in your projects. The main advantage of using this node is its ability to introduce natural and fluid motion patterns, which can be customized through various parameters to suit different artistic needs. Whether you're looking to create subtle shifts or dramatic oscillations, the DepthflowMotionCosine
node offers a flexible solution for animating depth-based effects.
The target
parameter specifies the parameter to which the cosine wave motion will be applied. It determines the aspect of the animation that will be influenced by the cosine function, allowing you to focus the motion effect on a particular element of your project. The default value is the first option in the TARGETS
list.
The amplitude
parameter controls the height of the cosine wave, effectively determining the strength or intensity of the motion applied to the target. A higher amplitude results in more pronounced motion, while a lower amplitude creates a subtler effect. The value ranges from -10.0 to 10.0, with a default of 1.0, allowing for fine-tuning of the motion's impact.
The cycles
parameter defines the number of complete oscillations the cosine wave will make over the duration of the animation. This parameter affects the frequency of the motion, with higher values resulting in more rapid oscillations. The range is from 0.0 to 10.0, with a default of 1.0, providing flexibility in adjusting the motion's tempo.
The phase
parameter introduces a phase shift to the cosine wave, altering the starting point of the motion cycle. This can be used to synchronize or offset the motion relative to other elements in the animation. The phase value ranges from -10.0 to 10.0, with a default of 0.0, offering control over the timing of the motion.
The reverse
parameter is a boolean option that, when enabled, reverses the direction of time for the motion effect. This can be useful for creating reverse animations or for achieving specific artistic effects where the motion needs to be inverted. The default value is False
.
The bias
parameter adds a constant offset to the motion, effectively shifting the entire cosine wave up or down. This can be used to adjust the baseline of the motion effect, allowing for more precise control over its position. The bias value ranges from -10.0 to 10.0, with a default of 0.0.
The cumulative
parameter is a boolean option that determines whether the motion effect should be added to the previous frame's value, creating a cumulative effect over time. This can be useful for building up motion effects gradually. The default value is False
.
The context does not provide specific output parameters for the DepthflowMotionCosine
node. Typically, the output would be the modified target parameter with the applied cosine motion effect, but further details would depend on the specific implementation and usage within the broader system.
amplitude
and cycles
parameters to achieve the desired intensity and frequency of motion. Higher amplitudes and cycles can create more dynamic effects, while lower values can be used for subtle animations.phase
parameter to synchronize the motion with other elements in your animation, ensuring a cohesive visual experience.amplitude
, phase
, and bias
should be between -10.0 and 10.0, while cycles
should be between 0.0 and 10.0.target
parameter is not recognized or is not applicable for the motion effect.target
parameter is correctly specified and is a valid option within the TARGETS
list. Adjust the target to a compatible parameter if necessary.© 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. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.