Docs CHOPs & sensing

KinectSinglePlayer

Picks one player out of a Kinect skeleton stream: whoever stands inside the bounds you set becomes the active player, and their joints ride out as clean channels until they leave.

∿ CHOPs & sensing ◆ Patreon · Base

Why use it

A Kinect CHOP reports every body it sees, spread over six player slots. An installation usually wants exactly one person: whoever stands on the marked spot in front of the screen. Which slot that person lands in is out of your hands, and a passer-by in the background gets a slot too.

KinectSinglePlayer watches a chosen joint of every tracked player and keeps the players whose joint sits inside a box you define. One of them becomes the active player, and their joints come out under a stable name, so the rest of the network never has to know which slot they occupy. When they walk out of the box, the next player in range takes over.

Features

How to use it

  1. Create it from the FNS tab of the OP Create dialog.
  2. Point Kinect Data at your Kinect CHOP. Any CHOP with Kinect-style channel names works too, such as a take recorded and played back with FloatDataRecorder, so you can set it up without the sensor.
  3. Choose the Joint that decides whether someone counts as in range. The default, spine, tests the middle of the body; pick head or a hand when that is what should count.
  4. Draw the box with X Bounds, Y Bounds and Z Bounds, in metres from the sensor. To pick the person standing on a spot two metres in front of the sensor, for example, set Z Bounds to 1.5 and 2.5 and narrow X Bounds to the width of the spot.
  5. Use the outputs: OUT_SINGLE_PLAYER for the active player's joints, and OUT_ACTIVE to know whether anyone is there at all, for example to fade the interactive layer in and out.

Outputs

  • OUT_ACTIVE (CHOP): whether a player is active right now.
  • OUT_SINGLE_PLAYER (CHOP): the active player's joints.

Get it

This tool unlocks with Patreon. It installs through the same picker as everything else and unlocks with the Patreon Base tier or higher, connected from inside TouchDesigner. Everything else in the toolkit stays free and MIT, and the membership is what keeps that work moving.

Join on Patreon → How unlocking works →

Parameters

Custom

ControlType / defaultWhat it does
Kinect DataKinectdata operatorempty Kinect CHOP (or any CHOP with Kinect-style channels such as p1/spine:tx, p1/id) to pick the single player from. Output channels follow the locked template in null1 (TouchDesigner Kinect v2 names with world, depth-space, bone rotation and length channels); input channels outside that set are not passed through.
JointJoint textspine Kinect joint tested against the bounds, matched as the whole joint name (p/:tx/ty/tz), so 'spine' does not also catch 'spine_mid'. TouchDesigner's Kinect CHOP names: hip, spine, neck, head, shoulder_c, shoulder_l/_r, elbow_l/_r, wrist_l/_r, hand_l/_r, hip_l/_r, knee_l/_r, ankle_l/_r, foot_l/_r.
X BoundsBoundx number-0.5 X range (min, max) in metres, Kinect camera space (0 = straight in front of the sensor). The joint must sit inside it for the player to count as in range.
Y BoundsBoundy number-1 Y range (min, max) in metres, Kinect camera space (0 = sensor height, + = up). The joint must sit inside it for the player to count as in range.
Z BoundsBoundz number1 Z range (min, max) in metres: distance in front of the sensor (Kinect reports 0.5 to about 4.5). The joint must sit inside it for the player to count as in range.