BlendShape Example
In this example we just made a simple BlendShapes that can open and close the mouth.
If look closely at the BlendShape component you will see it has a value from 0 to 1 which 0 means close and 1 means open.
Wee need to create a script to animate this BlendShape value based on the mouth state. To track the mouth state we need to create two head bindings with a sprite and set one of the head binding’s sprite to top lip and another one to the bottom lip.
Now that we setup the top lip sprite and the bottom lip sprite we can disable the sprite SceneObject so it we won’t be shown.
The example below includes a script that will animate the BlendShape base on the distance of those two tracker sprites that we created earlier. All we need to do is to assign those sprite to the script, give a reference to the blend shape object and also name of the BlendShape pose which in this case is “Pose_1”.
Here is the link to the project file:
https://storage.googleapis.com/snapchat-lens-assets/f1a09194-f02d-43ed-92b8-62e843179ff0/lensStudio/Forum-Helpers/blendshape_example.zip
Have fun creating lenses,
Amir.
Thanks!
Is it possible to rig this up for different blend shapes. Maybe some for the eyes.