![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
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.
Check if this animation contains keys of a given type.
Boolean HasKeys(Murl.IEnums.AnimationKey keyType)
keyType | The animation key type to query. |
Get the number of clips stored in the animation.
Integer GetNumberOfClips()
Get the index of a clip with a given name.
Integer GetClipIndex(String clipName)
clipName | The name of the clip to query. |
Get the name of a clip at a given index.
String GetClipName(Integer clipIndex)
clipIndex | The zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1. |
Get a clip's start time.
Number GetStartTime(Integer clipIndex)
clipIndex | The zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1. |
Get a clip's end time.
Number GetEndTime(Integer clipIndex)
clipIndex | The zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1. |
Get a clip's duration.
Number GetDuration(Integer clipIndex)
clipIndex | The zero-based index of the clip, in the range from 0 to GetNumberOfClips()-1. |
Get the number of "visible" keys stored in a clip.
Integer GetNumberOfVisibleKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of "active" keys stored in a clip.
Integer GetNumberOfActiveKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of index keys stored in a clip.
Integer GetNumberOfIndexKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of depth order keys stored in a clip.
Integer GetNumberOfDepthOrderKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of alpha keys stored in a clip.
Integer GetNumberOfAlphaKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of audio volume keys stored in a clip.
Integer GetNumberOfVolumeKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of time keys stored in a clip.
Integer GetNumberOfTimeKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of ambient color keys stored in a clip.
Integer GetNumberOfAmbientColorKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of diffuse color keys stored in a clip.
Integer GetNumberOfDiffuseColorKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of specular color keys stored in a clip.
Integer GetNumberOfSpecularColorKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of emissive color keys stored in a clip.
Integer GetNumberOfEmissiveColorKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of position keys stored in a clip.
Integer GetNumberOfPositionKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of scaling keys stored in a clip.
Integer GetNumberOfScalingKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of axis/angle keys stored in a clip.
Integer GetNumberOfAxisAngleKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of quaternion keys stored in a clip.
Integer GetNumberOfQuaternionKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of euler X/Y/Z rotation angle keys stored in a clip.
Integer GetNumberOfEulerAngleKeys(Integer clipIndex)
clipIndex | The clip index. |
Get the number of blend factor key sets stored in the animation.
Integer GetNumberOfBlendFactorKeySets()
Get the number of blend factor keys for a given key set stored in a clip.
Integer GetNumberOfBlendFactorKeys(Integer clipIndex, Integer keySet)
clipIndex | The clip index. |
keySet | The key set index. |