Face Avatar Drive
![face avatar drive](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/face_avatar_drive-47c80a60d9ce9f07ca3121a53bbeccc1.png)
Use Face Avatar Drive to drive the deformation component. This results in movement that matches facial expressions. Face Avatar Drive is in the Head & Face category.
Input
Name | Data Type | Description |
---|---|---|
Enter | Trigger | Trigger the node. |
Deformation | Component | The deformation component to drive. |
Output
Name | Data Type | Description |
---|---|---|
Exit | Trigger | Trigger the next node. |
Example
![face avatar drive example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/face_avatar_drive_example-18648b2d344fc7ff7cb2ae576f9bbb9d.gif)
This example uses Face Avatar Drive to control the alienAvatar object’s deformation.
![face avatar drive node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/face_avatar_drive_node-c3a16a420a0fc0a50707b6d540af7ff1.png)
How to Use Face Avatar Drive
Face Avatar Drive allows you to track the position and movements of the facial features. You can track all features of the face or only particular features.
![face avatar drive demo](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/faceavatardrive_demo-056d60d46cef93f039a52285e2aa74bf.png)
Add a Face Avatar Drive Node
Add the Face Avatar Drive node from the Visual Scripting panel. This node controls the Deformation component to drive the 3D Face Avatar deformation with facial movement.
Prepare a 3D Face Avatar Model
The Face Avatar Drive node maps the movement of key points of your face that are recognized by the camera to the key channels of the blend shape of the face avatar model.
Set Up the Blend Shape
The Face Avatar Drive node controls 52 facial features but only supports one blend shape. You must prepare one blend shape with different channels that match the facial feature name in the following table.
The Face Avatar Drive feature only recognizes the matched naming targets and will ignore the other channels. You don’t need to create all 52 channels. Just pick the ones you need for your effect.
To create the blend shape, use a digital content creation tool, like Autodesk® Maya®.
Name | Data type | Description |
---|---|---|
eft | Central | Right |
eyeBlinkLeft | eyeBlinkRight | |
eyeLookDownLeft | eyeLookDownRight | |
eyeLookInLeft | eyeLookInRight | |
eyeLookOutLeft | eyeLookOutRight | |
eyeLookUpLeft | eyeLookUpRight | |
eyeSquintLeft | eyeSquintRight | |
eyeWideLeft | eyeWideRight | |
jawForward | ||
jawLeft | jawRight | |
jawOpen | ||
mouthClose | ||
mouthFunnel | ||
mouthPucker | ||
mouthLeft | mouthRight | |
mouthSmileLeft | mouthSmileRight | |
mouthFrownLeft | mouthFrownRight | |
mouthDimpleLeft | mouthDimpleRight | |
mouthStretchLeft | mouthStretchRight | |
mouthRollLower | ||
mouthRollUpper | ||
mouthShrugLower | ||
mouthShrugUpper | ||
mouthPressLeft | mouthPressRight | |
mouthLowerDownLeft | mouthLowerDownRight | |
mouthUpperUpLeft | mouthUpperUpRight | |
browDownLeft | browDownRight | |
BrownInnerUp | ||
browOuterUpLeft | browOuterUpRight | |
cheekPuff | ||
cheekSquintLeft | cheekSquintRight | |
noseSneerLeft | noseSneerRight | |
tongueOut |
↓ avatarDrive_23_freshBlend.zip
![alien fbx](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/alien_fbx-73fb9676085478aa98709b14bf7f32b4.jpeg)
Import a 3D Model
Import the model and make sure the Import Blendshape checkbox is selected. You can also view all blend shape channels in the Inspector panel.
![import 3d model](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/import_3d_model-7b372f67a4b2e8b7036ad49de7cd4299.gif)
Add a 3D Model to the Hierarchy panel
Drag and drop the model from the Assets panel to the Hierarchy panel. You can see that the Deformation component is auto-generated since the model contains blend shapes.
![add 3d model to the hierarchy panel](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/add_3d_model_to_hierarchy-d296a66df7fe207b58532081a8e71565.gif)
Link a Model to the Face Avatar Drive Node
Pin the Deformation component to the Visual Scripting panel as the input of the Face Avatar Drive node.
![lik model to face avatar drive node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/link_model_to_fad-d9fc18aa64ea4281475a9e88260fee7d.png)
Create a model setup like the one shown in the screenshot below. Then the facial expression will be updated.
![face avatar drive node setup](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/fad_vs_setup-39b452b6a3e7b7c1d16550ac3b1f6481.png)
Now you can control your avatar!
Demo Effect: Face Avatar Drive With a Head Tracker
Check out this tutorial to learn how to add a Head Tracker as the parent to make your face avatar follow your head.
![face avatar drive demo head tracker](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/demo_effect_fad-d942c4596af33b73580f4eee2885f033.gif)
Demo Effect: Customize Face Avatar Drive With the Face Avatar Result Node
You can also play with the Face Avatar Result node to create more advanced interactions.
![customize face avatar drive demo](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/demo_effect_fad_white-360854eabf5875fe83c7a8f87d9fdf27.gif)
In this example, Face Avatar Result is used with eyeBlinkRight in the blend shape channel to control the right eye of the alienAvatar object. In the Deformation component channel of the alienAvatar object, select Set eyeBlinkRight to add the node.
![set eyeblink graph](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/set_eye_blink_graph-e37bfb606f75d58dbddc2db30bf4329f.png)