Mirror Engine
V7
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / AnimCurve

Class: AnimCurve

Animation curve links an input data set to an output data set and defines the interpolation method to use.

Constructors

new AnimCurve()

new AnimCurve(
   paths: string[],
   input: number,
   output: number,
   interpolation: number): AnimCurve

Create a new animation curve.

Parameters

paths

string[]

Array of path strings identifying the targets of this curve, for example "rootNode.translation".

input

number

Index of the curve which specifies the key data.

output

number

Index of the curve which specifies the value data.

interpolation

number

The interpolation method to use. One of the following:

Returns

AnimCurve

input

Get Signature

get input(): number

The index of the AnimTrack input which contains the key data for this curve.

Returns

number


interpolation

Get Signature

get interpolation(): number

The interpolation method used by this curve.

Returns

number


output

Get Signature

get output(): number

The index of the AnimTrack input which contains the key data for this curve.

Returns

number


paths

Get Signature

get paths(): string[]

The list of paths which identify targets of this curve.

Returns

string[]

Mirror Engine Logo