TriggerChannel

TriggerChannel

An animation source channel consisting of keyword samples indicating when a specific trigger condition is met. Each channel can only be in one keyword "state" at a given moment in time.

Constructor

new TriggerChannel(channelName, times, keys, blendType)

Parameters:
Name Type Description
channelName string

the name of this channel.

times Array.<number>

the time samples

keys Array.<string>

our key samples. Entries may be null. Should have as many entries as the times array.

blendType string

Methods

createStateDataObject() → {TriggerData}

Creates a data item for this type of channel

setCurrentSample(sampleIndex, progressPercent, triggerData)

Applies the channels animation state to supplied data item

Parameters:
Name Type Description
sampleIndex number
progressPercent number
triggerData TriggerData

value The data item to apply animation to