I would like to create an operator that gradually changes the value from 0 to 1 when the “left” key on the keyboard is pressed.
I am sorry for asking such a rudimentary question, but when I asked gemini and chatGPT how to do it, they talked about operators and parameters that do not exist and I am at a loss.
If you know of a better way, please let me know. Thank you in advance.
you can use a Keyboard In CHOP specifying the “left” key in the keys parameter. From here there are different approaches:
you can append a Speed CHOP setting the Limit Type parameter to “Clamp”. Question is what should happen when the key is released? If it should reset to 0 when the “left” key is released you can also connect the output of the Keyboard In DAT to the second input of the Speed CHOP and set the Speed CHOP’s Reset Condition parameter to “On to Off”
you could append a Trigger CHOP which with it’s settings of Attack, Decay, Sustain, and Release give you great control over how the value should be behaving over time
you could append a Filter CHOP and just specify the time in seconds via the Filter Width parameter.
Generally also watch out that the left and right keyboard keys are function keys in TouchDesigner that pause the timeline - so make sure to specify a panel in which this would only work.
Make sure to checkout the OP Snippets for all mentioned operators for more information on how they work and more examples that explain their many usages.
Also for a great general introduction to the underlying principles of TouchDesigner, check out our curriculum at