Live values of the hand seen by the webcam: position, distance to the camera, opening, pinch, raised fingers, rotation and presence.
What it is for
Lets you play the particles with your hand: move a force, open the hand to speed the simulation up, pinch to tighten a vortex. Reach for it for live sets, installations, or to find a setting by feel instead of typing numbers.
How it works
A separate tracker reads the webcam as a mirror image, finds the hands and sends their values to Blender; the node outputs the latest ones, unsmoothed. X goes from 0 (left of the image) to 1 (right) and Y from 0 (bottom) to 1 (top), measured at the palm. Depth goes from 0 (hand far from the camera) to 1 (close to it), read from the size of the hand in the image. Open is 0 for a fist and 1 for a flat hand. Pinch is 0 when the thumb and index tips touch and 1 when they are apart. Rotation is an angle in degrees: 0 when the hand points up, positive when it leans to the right of the image, negative to the left. Fingers is the number of raised fingers, 0 to 5. Present is 1 while a hand is detected and 0 otherwise. With no hand, the outputs rest at X 0.5, Y 0.5, Depth 0.5, Open 1, Pinch 1, Fingers 0, Rotation 0. Older files may show a Height output: it is the same value as Y, kept so they keep working. Every output is one value for the whole system, the same for all particles.
Connections
No input. Start the tracking first: sidebar of the node editor > GPU Particles tab > Hand Control > Start Webcam (the webcam components must be installed). Outputs X, Y, Open, Pinch, Height, Rotation and Present go into any number input: the Strength of a force, the Time Scale of the Particle System, a Map Range to set the range, a Combine XYZ to build a position.
Settings
| Setting | What it does | Default |
|---|---|---|
| Hand | Which hand is read. Any: the right hand when it is seen, otherwise the left one. Right / Left: only that hand; when it is not in view the outputs go to their rest values and Present is 0.
|
Outputs
X, Y, Open, Pinch, Height, Rotation, Present, Depth, Fingers
Tips
- Put a Map Range after an output to choose the range it covers (for example Y 0.1-0.9 to Strength 0.3-2.2), and a Monitor to see the number while you move.
- Use Present to decide what happens when the hand leaves: Open rests at 1 and Pinch at 1, so a setting driven by them jumps to its 'open' state when no hand is seen.
- Rotation is in degrees (about -90 to 90 in normal use), not 0 to 1: remap it with a Map Range before plugging it into a Strength.
- The values are not smoothed. For a softer response, drive the Speed of a Slow Motion node (its Ease glides) or send the value through an Audio Analyzer's In to use its Attack and Release.
- Depth and Fingers give two more controls without moving across the image: push the hand towards the camera to raise a value, or count raised fingers to change a setting by steps (Fingers is a whole number, 0 to 5).