Animating Circle Size and Fade Based on Real-Time Sensor Data via WEB DAT

I have set up a Google Spreadsheet that receives real-time data from a vibration sensor, with values ranging from 0 to 100. I managed to retrieve this data using a WEB DAT in TouchDesigner.

I’m looking to create an animation where an image of a circle appears and then slowly fades out, depending on the intensity of the vibration. How can I achieve this? Specifically, I’d like to know how to use a Math CHOP to process the data and link it to a Transform TOP for the animation.

Additionally, I would like to know how to set up the WEB DAT to request and update the data at regular intervals. Any guidance would be greatly appreciated!

Hi @maharu,

under the assumption that the data is now available in TouchDesigner as a Table DAT, you can convert this to a CHOP using the DAT To CHOP. Now you should have a channel containing all the values from your original spreadsheet which, using a Lookup CHOP can be played back over time.

This value can be adjusted using a Math CHOP and finally exported or referenced in the Transform TOPs parameter of your choice (scale perhaps).

The Web DAT has a Request parameter which can be pulsed using for example an LFO CHOP.

For general concepts like signal processing and controlling parameters, have a look at our curriculum at

cheers
Markus