AnimationCurves - stingray.AnimationCurves object reference - Stingray Lua API Reference

stingray.AnimationCurves object reference

Description

An interface for sampling custom animation curves.

Functions

Parameters

self :

stingray.AnimationCurves

Specifies the object instance that this function will act on.

You may use the colon : calling syntax to call this function on an instance of this object. If you do so, you must omit this parameter. For more information, see this Stingray help topic, or this page in the Lua documentation.

object :

string

The name of the object that owns the animated parameter.

parameter :

string

The parameter associated with the object.

time :

number

The time of the animation to sample, specified in seconds from the start of the curve.

step_sampling :

boolean?

Optional. If set to true, the returned values will represent the exact value of the last key before the given time. Otherwise, linear interpolation is used.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

number+

The sampled values.

The + notation indicates that there may be one or more instances of the specified type.

The curve for the requested object and parameter can have multiple values; for example, the curve can represent a vector or a color value. If so, each value will be returned in order.