Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform subtraction operation on keyframed curves to create dynamic animations or effects efficiently.
The KfCurvesSubtract
node is designed to perform a subtraction operation between two keyframed curves. This node is particularly useful when you need to calculate the difference between two sets of keyframed data points, which can be essential in various animation and AI art tasks. By subtracting one curve from another, you can create new curves that represent the deviation or change between the original curves, enabling more dynamic and complex animations or effects. This node ensures that the subtraction is handled efficiently and accurately, providing you with a new keyframed curve that reflects the result of the operation.
curve_1
is the first keyframed curve input required for the subtraction operation. This parameter represents the minuend in the subtraction process, meaning it is the curve from which the second curve (curve_2
) will be subtracted. The input must be of type KEYFRAMED_CURVE
, and it is mandatory to provide this input for the node to function correctly. There are no default values for this parameter as it must be explicitly provided by the user.
curve_2
is the second keyframed curve input required for the subtraction operation. This parameter represents the subtrahend in the subtraction process, meaning it is the curve that will be subtracted from the first curve (curve_1
). The input must be of type KEYFRAMED_CURVE
, and it is mandatory to provide this input for the node to function correctly. Similar to curve_1
, there are no default values for this parameter as it must be explicitly provided by the user.
The output of the KfCurvesSubtract
node is a new keyframed curve that represents the result of subtracting curve_2
from curve_1
. This output is of type KEYFRAMED_CURVE
and contains the data points that reflect the difference between the two input curves. This resulting curve can be used in further processing or directly applied to animations or effects where the difference between the original curves is needed.
curve_1
and curve_2
) are properly defined and contain the necessary keyframes before performing the subtraction operation.TypeError: unsupported operand type(s) for -: 'KEYFRAMED_CURVE' and 'KEYFRAMED_CURVE'
KEYFRAMED_CURVE
type.curve_1
and curve_2
are valid keyframed curves and are correctly passed to the node. Verify that the inputs are of the type KEYFRAMED_CURVE
.ValueError: Mismatched keyframe lengths
AttributeError: 'NoneType' object has no attribute 'copy'
None
.curve_1
and curve_2
are properly initialized keyframed curves and are not None
. Verify the inputs before passing them to the node.© Copyright 2024 RunComfy. All Rights Reserved.