Facial Movement Detection
Use Facial Movement Detection to detect facial movement. Facial Movement Detection is in the Head & Face category.
note
Each facial movement has four states: “begin”, “stay”, “end”, and “none”. For movement such as eye blink, even the fastest blink will still have one frame “stay” state.
Input
Name | Data Type | Description |
---|---|---|
Detect | String | Face select includes Face 0, Face 1, Face 2, Face 3, Face 4, Any; Track any face if choosing Any. |
Facial Movement | String | Facial movement including Eye Blink Left, Eye Blink Right, Eye Blink Both, Eye Blink Either, Mouth Open, Mouth Pout, and Eyebrow Wiggle. |
Output
Name | Data Type | Description |
---|---|---|
Begin | Exec | Execute the next node when the facial movement starts. |
Stay | Exec | Keep executing the next node when the facial movement stays. Even with movements such as blink, the fastest eye blink will still have one frame as “stay”. |
End | Exec | Execute the next node when the facial movement ends. |
None | Exec Array | Keep executing the next node when the facial movement is not detected. |
Example
This example uses the Facial Movement Detection node to show the alien hat when she opens her mouth and hides it when she closes her mouth. Check out Head Tracking and Animation Controller for adding the alien hat.