Use the Head Nod patch to make something happen when the user nods.
Track the user’s face from the face tracker.
Output the value to the next patch.
In the example below, an object appears when a nod is detected. The object disappears when a nod is detected again.
To make the object appear and disappear, we used the following graph:
The output on the Head Nod patch to the Flip input on the Switch patch.
The On/Off output on the Switch patch to the Visible input on the object patch.
When a nod is detected, a pulse is sent from the Head Nod patch to the Switch patch. Flip is turned on and the pulse is sent to the object patch. A check appears to the right of Visible and the object appears on the user’s face.
When a nod is detected again, Flip is turned off and the object is no longer Visible.