Houdini 21.0 Nodes APEX nodes

ch::CollectionSmoothKeys

Smoothes the keyframes in a channel collection.

On this page
Since 21.0

Smoothes the keyframes in a channel collection using a Butterworth filter within the time range start to end.

Within the time range, the channels are evaluated using rate to get evenly spaced samples between keyframes. The filtering operation is then run on these samples. If resample is set to False, the result is written back to the existing keyframes. If resample is set to True, new keyframes are created.

The channels ports of this node are in-place ports, which means the channel collection is updated without creating a copy.

Inputs

*channels: AnimChannelCollection Required

The channel collection that contains the keyframes to smooth.

pattern: String

A pattern that specifies the channels whose keyframes to smooth.

cutoff: Float

The cutoff frequency for the filter. Frequencies over this value are filtered out.

order: Int

The order of the filter. Determines how steeply the filter curve rolls off after the cutoff frequency. Higher orders correspond to a steeper roll off.

rate: Float

Sampling rate in frames per second.

start: Float

The start time of the time range in seconds.

end: Float

The end time of the time range in seconds.

resample: Bool

If set to True, the keyframes within the range start to end are replaced by the resampled filters. If set to False, the filtered values are written back to the exising keyframes. Linear interpolation is performed if a keyframe time doesn’t exactly match a filtered sample time.

snap: Bool

If set to True, keyframes are only set on integer frames. This only has an effect when resample is True.

Outputs

*channels: AnimChannelCollection

The input channel collection with the smoothed keyframes.

See also

APEX nodes