unreal.AnimDatabaseSampler

class unreal.AnimDatabaseSampler

Bases: EnumBase

EAnim Database Sampler

C++ Source:

  • Plugin: AnimDatabase

  • Module: AnimDatabase

  • File: AnimDatabase.h

CUBIC: AnimDatabaseSampler = Ellipsis

Interpolations animation data using a cubic catmull-rom spline.

This produces a smooth interpolation of the animation data with smoothly varying velocities. The only potential downside of this method is that it can produce “over-shooting” where the joint rotations and translations can over-extend past the keyframes during the interpolation period.

Type:

2

CUBIC_MONO: AnimDatabaseSampler = Ellipsis

Interpolates animation data using a monotone cubic spline.

This produces a similar result to the Cubic interpolation but uses monotone interpolation to ensure that the animation pose never “over-shoots” during the interpolation. The cost of this is that CubicMono interpolation can sometimes produce more shaky looking motion at end-effectors.

Type:

3

LINEAR: AnimDatabaseSampler = Ellipsis

Linearly interpolates animation data.

This will give the same result as what is seen in the AnimSequence asset viewer. The main problem with this interpolation method is that it produces a velocity discontinuity as it switches key-frames. This means velocities tend to change in discrete jumps and sometimes the velocity discontinuity is visible when playing the animation back slowly.

Type:

1

NEAREST: AnimDatabaseSampler = Ellipsis

Snaps to the nearest keyframe in the animation sequence.

This interpolation mode is not recommended for downstream tasks since it does not produce any velocities when you sample the animation data, but may be useful for debugging and inspecting the data.

Type:

0