Handling Kinect sensor data smoothly when user leaves / enters area

Apologies if this has been asked in the forum previously, I could not find what I was after with search.

What is the best way to handle Kinect sensor data when a user leaves sensor range or enters? I want a default value when someone leaves the area - at the moment the sensor data jumps to 0. I have a match Chop converting the data value to a range but i want the value to smoothly switch to a default value which is at the top of the range and not 0 to prevent a jump.

Along the same lines if someone enters the area closer to the sensor i want a transition from that default value to the new value.

I have tried using a replace chop but i dont think its what i need, and have setup a switch with a constant holding the default value and the other input being the sensor data, with a logic chop being on or off depending if the sensor data is present, which controls the switch index. It seems a bit of a long way round and still doesnt solve the issue of smooth transitions.

The issue is that the math range is making the value lower the higher the sensor data value is (which is a tz value), so when a user walks away the sensor value increases then drops to zero, whereas I want it to remain high. There is probably something simple in the math chop im missing, but have tried inverse and negate options and cant get what im after.

I’m sure there must be a tried and tested best method for transitions to default values when sensor input disappears?

Thanks!

Hi @retone,

not a kinect here but could you use the player id channels as a trigger for transitioning from and to default data?

cheers
Markus

Thanks - in the end i went with player ID active triggering a Chop Execute that controlled a switch index to switch between the real value and a constant holding a default value, and a filter after this to smooth out the transition. The trouble is that filter now affects the whole signal chain - i need to work out a way of only having that active when triggering the switch for a small period