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
- Select a player by boundsWatches a chosen joint of every tracked player and promotes one whose joint sits inside the box you define to active player.
- Track one player on stable channelsThe active player's joints come out under a stable name, whichever of the six Kinect slots they occupy.
- Hand over to the next playerWhen the active player walks out of the box, the next player in range takes over.
- Detect whether a player is activeA separate CHOP output reports whether a player is active right now.
- Read live or recorded dataReads a Kinect CHOP, or any CHOP with Kinect-style channel names such as a recorded take.
How to use it
- Create it from the FNS tab of the OP Create dialog.
- 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.
- Choose the Joint that decides whether someone counts as in range. The
default,
spine, tests the middle of the body; pickheador a hand when that is what should count. - 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.
- 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.
Parameters
Custom
| Control | Type / default | What 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 |
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. |