|
Drag[en]gine Script Module DragonScript 1.35
|
Classes | |
| class | Phoneme |
Public Member Functions | |
| void | addPhoneme (SpeechAnimationPhoneme phoneme, float duration) |
| AnimatorInstance | getAnimatorInstance () |
| float | getDuration () |
| float | getElapsed () |
| float | getSpeakBlend () |
| Speak blending factor. | |
| bool | getSpeaking () |
| SpeechAnimation | getSpeechAnimation () |
| SpeechAnimationPlayback | new () |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| void | removeAllPhonemes () |
| void | setSpeechAnimation (SpeechAnimation speechAnimation) |
| void | update (float elapsed) |
| Updates the speech animation. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Public Attributes | |
| AnimatorInstance | pAnimatorInstance |
| Array | pControllers |
| float | pDuration |
| float | pElapsed |
| Array | pPhonemes |
| int | pPosition |
| bool | pRequiresApply |
| float | pSpeakBlend |
| bool | pSpeaking |
| SpeechAnimation | pSpeechAnimation |
Speech animation Playback.
| void Dragengine.SpeechAnimations.SpeechAnimationPlayback.addPhoneme | ( | SpeechAnimationPhoneme | phoneme, |
| float | duration ) |
| AnimatorInstance Dragengine.SpeechAnimations.SpeechAnimationPlayback.getAnimatorInstance | ( | ) |
| float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getDuration | ( | ) |
Retrieves the duration of the speaking.
References new(), pControllers, and pRequiresApply.
Referenced by update(), and writeToFile().
| float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getElapsed | ( | ) |
Retrieves the elapsed time.
Referenced by readFromFile().
| float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeakBlend | ( | ) |
Speak blending factor.
If speaking this is 1 if a viseme is playing or 0 if not. Values in between represent blending in and out of speaking. Can be used to avoid animators affecting speech animation driven bones or vertex position sets while speaking.
References pAnimatorInstance, pControllers, pSpeechAnimation, and setSpeechAnimation().
Referenced by writeToFile().
| bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeaking | ( | ) |
Determines if the playback is still running.
References getAnimatorInstance(), getSpeechAnimation(), pAnimatorInstance, and pSpeechAnimation.
Referenced by writeToFile().
| SpeechAnimation Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeechAnimation | ( | ) |
Retrieves the speech animation or null if not assigned.
References new(), pAnimatorInstance, pDuration, and pPhonemes.
Referenced by getSpeaking().
| SpeechAnimationPlayback Dragengine.SpeechAnimations.SpeechAnimationPlayback.new | ( | ) |
Creates a new speech animation playback.
References pControllers, pRequiresApply, and pSpeakBlend.
Referenced by getAnimatorInstance(), getDuration(), getSpeechAnimation(), and writeToFile().
| void Dragengine.SpeechAnimations.SpeechAnimationPlayback.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
| void Dragengine.SpeechAnimations.SpeechAnimationPlayback.removeAllPhonemes | ( | ) |
Remove all phonemes.
Referenced by writeToFile().
| void Dragengine.SpeechAnimations.SpeechAnimationPlayback.setSpeechAnimation | ( | SpeechAnimation | speechAnimation | ) |
Sets the speech animation or null if not assigned.
References pElapsed, pPosition, and pSpeaking.
Referenced by getSpeakBlend().
| void Dragengine.SpeechAnimations.SpeechAnimationPlayback.update | ( | float | elapsed | ) |
Updates the speech animation.
This updates the playback and updates animator instances if required. This does not apply the animation yet to allow proper use of state capturing.
References getDuration(), and pDuration.
Referenced by writeToFile().
| void Dragengine.SpeechAnimations.SpeechAnimationPlayback.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Writes the element to a file.
References addPhoneme(), getDuration(), getSpeakBlend(), getSpeaking(), new(), pAnimatorInstance, pControllers, pDuration, pElapsed, pPhonemes, pPosition, pRequiresApply, pSpeakBlend, pSpeaking, readFromFile(), removeAllPhonemes(), update(), and writeToFile().
Referenced by writeToFile().
| AnimatorInstance Dragengine.SpeechAnimations.SpeechAnimationPlayback.pAnimatorInstance |
Referenced by addPhoneme(), getSpeakBlend(), getSpeaking(), getSpeechAnimation(), and writeToFile().
| Array Dragengine.SpeechAnimations.SpeechAnimationPlayback.pControllers |
Referenced by addPhoneme(), getDuration(), getSpeakBlend(), new(), and writeToFile().
| float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pDuration |
Referenced by getSpeechAnimation(), update(), and writeToFile().
| float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pElapsed |
Referenced by readFromFile(), setSpeechAnimation(), and writeToFile().
| Array Dragengine.SpeechAnimations.SpeechAnimationPlayback.pPhonemes |
Referenced by getSpeechAnimation(), and writeToFile().
| int Dragengine.SpeechAnimations.SpeechAnimationPlayback.pPosition |
Referenced by setSpeechAnimation(), and writeToFile().
| bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.pRequiresApply |
Referenced by getDuration(), new(), and writeToFile().
| float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeakBlend |
Referenced by new(), and writeToFile().
| bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeaking |
Referenced by setSpeechAnimation(), and writeToFile().
| SpeechAnimation Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeechAnimation |
Referenced by getSpeakBlend(), and getSpeaking().