unreal.MovieSceneTimeWarpVariant

class unreal.MovieSceneTimeWarpVariant(fixed_play_rate: float = 0.0)

Bases: StructBase

Numeric variant type that represents a ‘time-warp’ operation transforming a time into another time.

By default this variant is a literal value that represents a play rate of 1.0 (ie, a 1:1 mapping), but it can be customized to provide a wide range of different transformations such as looping, clamping and custom curves

C++ Source:

  • Module: MovieScene

  • File: MovieSceneTimeWarpVariant.h

set_fixed_play_rate(fixed_play_rate) None

Assign a constant playrate to this timewarp, overwriting any existing timewarp implementation.

Parameters:

fixed_play_rate (double)

to_fixed_play_rate() double

Retrieve this timewarp’s constant play rate. Will throw an error if the timewarp is not a constant play rate.

Return type:

double