Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IAnimation

The IAnimation resource object interface.

Animation resources store a number of animation clips, which in turn can contain any number of key frames of different types, such as colors, positions, audio volumes etc, in an ascending order with respect to their time stamps.


Table members

Methods


HasKeys(keyType)

Check if this animation contains keys of a given type.

Boolean HasKeys(Murl.IEnums.AnimationKey keyType)

Parameters
keyTypeThe animation key type to query.
Returns
Boolean true if keys of the requested type are present.

GetNumberOfClips()

Get the number of clips stored in the animation.

Integer GetNumberOfClips()

Returns
Integer The total number of clips.

GetClipIndex(clipName)

Get the index of a clip with a given name.

Integer GetClipIndex(String clipName)

Parameters
clipNameThe name of the clip to query.
Returns
Integer The zero-based index of the clip, or -1 if not found.

GetClipName(clipIndex)

Get the name of a clip at a given index.

String GetClipName(Integer clipIndex)

Parameters
clipIndexThe zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1.
Returns
String The name of the clip, or null if the index was out of range.

GetStartTime(clipIndex)

Get a clip's start time.

Number GetStartTime(Integer clipIndex)

Parameters
clipIndexThe zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1.
Returns
Number The start time in seconds, or 0.0 if the index was out of range.

GetEndTime(clipIndex)

Get a clip's end time.

Number GetEndTime(Integer clipIndex)

Parameters
clipIndexThe zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1.
Returns
Number The end time in seconds, or 0.0 if the index was out of range.

GetDuration(clipIndex)

Get a clip's duration.

Number GetDuration(Integer clipIndex)

Parameters
clipIndexThe zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1.
Returns
Number The duration in seconds, or 0.0 if the index was out of range.

GetNumberOfVisibleKeys(clipIndex)

Get the number of "visible" keys stored in a clip.

Integer GetNumberOfVisibleKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfActiveKeys(clipIndex)

Get the number of "active" keys stored in a clip.

Integer GetNumberOfActiveKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfIndexKeys(clipIndex)

Get the number of index keys stored in a clip.

Integer GetNumberOfIndexKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfDepthOrderKeys(clipIndex)

Get the number of depth order keys stored in a clip.

Integer GetNumberOfDepthOrderKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfAlphaKeys(clipIndex)

Get the number of alpha keys stored in a clip.

Integer GetNumberOfAlphaKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfVolumeKeys(clipIndex)

Get the number of audio volume keys stored in a clip.

Integer GetNumberOfVolumeKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfTimeKeys(clipIndex)

Get the number of time keys stored in a clip.

Integer GetNumberOfTimeKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfAmbientColorKeys(clipIndex)

Get the number of ambient color keys stored in a clip.

Integer GetNumberOfAmbientColorKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfDiffuseColorKeys(clipIndex)

Get the number of diffuse color keys stored in a clip.

Integer GetNumberOfDiffuseColorKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfSpecularColorKeys(clipIndex)

Get the number of specular color keys stored in a clip.

Integer GetNumberOfSpecularColorKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfEmissiveColorKeys(clipIndex)

Get the number of emissive color keys stored in a clip.

Integer GetNumberOfEmissiveColorKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfPositionKeys(clipIndex)

Get the number of position keys stored in a clip.

Integer GetNumberOfPositionKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfScalingKeys(clipIndex)

Get the number of scaling keys stored in a clip.

Integer GetNumberOfScalingKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfAxisAngleKeys(clipIndex)

Get the number of axis/angle keys stored in a clip.

Integer GetNumberOfAxisAngleKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfQuaternionKeys(clipIndex)

Get the number of quaternion keys stored in a clip.

Integer GetNumberOfQuaternionKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfEulerAngleKeys(clipIndex)

Get the number of euler X/Y/Z rotation angle keys stored in a clip.

Integer GetNumberOfEulerAngleKeys(Integer clipIndex)

Parameters
clipIndexThe clip index.
Returns
Integer The number of keys.

GetNumberOfBlendFactorKeySets()

Get the number of blend factor key sets stored in the animation.

Integer GetNumberOfBlendFactorKeySets()

Returns
Integer The number of key sets..

GetNumberOfBlendFactorKeys(clipIndex, keySet)

Get the number of blend factor keys for a given key set stored in a clip.

Integer GetNumberOfBlendFactorKeys(Integer clipIndex, Integer keySet)

Parameters
clipIndexThe clip index.
keySetThe key set index.
Returns
Integer The number of keys.