Drag[en]gine Script Module DragonScript
1.23
|
Classes | |
class | Phoneme |
Public Member Functions | |
void | addPhoneme (SpeechAnimationPhoneme phoneme, float duration) |
AnimatorInstance | getAnimatorInstance () |
float | getDuration () |
float | getElapsed () |
float | getSpeakBlend () |
Speak blending factor. More... | |
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. More... | |
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 | ||
) |
Adds a speak phoneme.
AnimatorInstance Dragengine.SpeechAnimations.SpeechAnimationPlayback.getAnimatorInstance | ( | ) |
Retrieves the animator instance.
float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getDuration | ( | ) |
Retrieves the duration of the speaking.
float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getElapsed | ( | ) |
Retrieves the elapsed time.
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.
bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeaking | ( | ) |
Determines if the playback is still running.
SpeechAnimation Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeechAnimation | ( | ) |
Retrieves the speech animation or null if not assigned.
SpeechAnimationPlayback Dragengine.SpeechAnimations.SpeechAnimationPlayback.new | ( | ) |
Creates a new speech animation playback.
void Dragengine.SpeechAnimations.SpeechAnimationPlayback.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Reads the element from a file.
void Dragengine.SpeechAnimations.SpeechAnimationPlayback.removeAllPhonemes | ( | ) |
Remove all phonemes.
void Dragengine.SpeechAnimations.SpeechAnimationPlayback.setSpeechAnimation | ( | SpeechAnimation | speechAnimation | ) |
Sets the speech animation or null if not assigned.
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.
void Dragengine.SpeechAnimations.SpeechAnimationPlayback.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Writes the element to a file.
AnimatorInstance Dragengine.SpeechAnimations.SpeechAnimationPlayback.pAnimatorInstance |
Array Dragengine.SpeechAnimations.SpeechAnimationPlayback.pControllers |
float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pDuration |
float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pElapsed |
Array Dragengine.SpeechAnimations.SpeechAnimationPlayback.pPhonemes |
int Dragengine.SpeechAnimations.SpeechAnimationPlayback.pPosition |
bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.pRequiresApply |
float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeakBlend |
bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeaking |
SpeechAnimation Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeechAnimation |