Brows lowered event incorrect
Hi,
When you raise your eye brows it correctly fires "BrowsRaisedEvent". But if you keep your eye brows raised it incorrectly fires BrowsReturnedToNormalEvent :(
Sample code.
var event = script.createEvent("BrowsRaisedEvent");
event.faceIndex = 0;
event.bind(function (eventData)
{
print("Brows were raised on face 0");
});
var event = script.createEvent("BrowsReturnedToNormalEvent");
event.faceIndex = 0;
event.bind(function (eventData)
{
print("Brows were returned to normal on face 0");
});
thanks.
Hi Marco,
The position of everyone's eyebrow is different, and so the system can understand when you've raised your eyebrows when your eyebrow position has changed.
However, if you hold that position for too long, it's possible that "position" is not a "raised" position, but rather your "standard" eyebrow position.
You can also create your own "eyebrows raised" logic by accessing the face landmarks directly! Take a look at https://lensstudio.snapchat.com/templates/face/face-landmarks/ for more information.
Cheers,
Jonathan