Head Nod Patch

Use the Head Nod patch to make something happen when the user nods.

Input

NameDescription

Face

Track the user’s face from the face tracker.

Output

NameDescription
Output

Output the value to the next patch.

Example

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:

We connected:

  1. The output on the Head Nod patch to the Flip input on the Switch patch.

  2. 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.

Was this article helpful?