Dear Touchdesigner community
I am fairly new to programming with TD, normally I code with openframeworks or Unity, so now things are different and I need your help.
Right now I am working on an interactive installation using the kinect sensor.
Some functionality that I have done before using normal code, now becomes a challenge for me, because I don’t know how to do it and most tutorial are about visual things.
My problem is more a logical task.
Here is what I am trying to do:
The application should recognize when a new user is detected by the kinect sensor. But it should only consider the user an active user if he is inside a certain area.
Only then the movements of the user’s joints are supposed to have an effect.
On top of that I would like the application to react differently depending on certain other things, like the duration of interaction, certain gestures ans so on.
Normally I would use a classical state machine and define conditions for the state transitions.
I would create a custom “User” object that has a state attribute, with every state leading to a distinct behaviour of the Application.
Can anyone please tell me if that is possible, and if so could point me into the right direction?
Thanks in advance - I am looking forward to learning from you