Nosmai  Effects Nosmai  Moderation Nosmai Try-ons coming soon
Docs menu Face triggers
Concept

Face triggers

Understand the tracking signals and blink gestures that an authored .nosmai package can use to drive animation and material values.

SDK version Native 3.0.4 · Web 0.2.0 preview Updated Aug 22, 2026 Time 6 min

What a trigger does

A trigger maps a face-tracking signal to an authored effect value. Continuous triggers can move a material value as the signal changes. Event triggers can start, stop, toggle, or play an animation after a gesture.

Triggers are authored inside the package. Application developers apply the package normally and do not receive raw face landmarks.

Available signals

SignalMeaningTypical use
faceFoundA face starts being trackedReveal or start an effect
faceLostThe tracked face is no longer availableHide or pause an effect
faceScaleRelative face size in the frameDrive scale or proximity reactions
headYawLeft and right head rotationDirectional animation
headPitchUp and down head rotationTilt-based animation
headRollSideways head tiltRotate or balance an element
blinkLeftLeft-eye blink valueEye-specific or wink interaction
blinkRightRight-eye blink valueEye-specific or wink interaction
Blendshape nameA package-requested facial coefficient, when availableAdvanced authored deformation or animation

The trigger runtime supports raw values plus wink, longBlink, and doubleBlink gesture recognition. A gesture can use the left eye, right eye, or either eye.

Event modes include toggle, momentary, oneShot, and pingPong. Authored timing options control attack, release, delay, hold, thresholds, and the refractory window.

Tracking behaviour

An effect should handle temporary face loss without leaving stale content on screen. Tracking can become less stable at frame edges, under heavy occlusion, in low light, or during very fast motion. Test the package with glasses, facial hair, partial faces, and front-camera mirroring.

Nosmai face triggers are not a general emotion-classification API. The public SDK does not expose raw landmarks for application-defined gesture detection.

Next steps

References

Was this page helpful?

Your response helps us prioritize documentation improvements.

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved