Animation triggers
A trigger is an action that causes the animation state to advance to the next state. Currently, we support several animation trigger types:
- Unconditional - unconditional transition to the next state.
- On End - transition to next state when the current animation ends
- Mouth Open - trigger transition to next state when the mouth open gesture is detected
- Mouth Open - trigger transition to next state when the closing of the mouth is detected
- Mouth Open (Sensitive) - same as Mouth Open but more sensitive, should be paired with Mouth Open (Sensitive)
- Mouth Open (Sensitive) - same as Mouth Open but more sensitive, should be paired with Mouth Open (Sensitive)
- Blink - trigger transition to next state when an eye blink is detected
- Face Appeared - trigger transition to next state when a face appeared
- Face Disappeared - trigger transition to next state when a face disappeared
- On Touch - trigger transition to next state when a touch event occurs. Note: You need to pass the touches to the DeepAR view in your app for this trigger to work
- Recording Started - trigger transition to next state when a video recording starts
- Recording Finished - trigger transition to next state when a video recording ends
- Screenshot Taken - trigger transition to next state when a screenshot is taken
- Eyebrow Raise - trigger transition to next state when the eyebrows raised gesture is detected
- Smile - trigger transition to next state when the corners of the mouth are raised
- Neutral - transition to next state when the neutral emotion is detected
- Happiness - transition to next state when the happiness emotion is detected
- Surprise - transition to next state when the surprise emotion is detected
- Sadness - transition to next state when the sadness emotion is detected
- Anger - transition to next state when the anger emotion is detected
- Neutral End - transition to next state when the neutral emotion is not detected
- Happiness End- transition to next state when the happiness emotion is not detected
- Surprise End - transition to next state when the surprise emotion is not detected
- Sadness End - transition to next state when the sadness emotion is not detected
- Anger End - transition to next state when the anger emotion is not detected
- Custom - user can create custom triggers for state transition by selecting this option and entering the trigger name in the text field below. These triggers can be activated through DeepSDK API methods in the user's host application.