Creating a Keyboard-Triggered Brushstroke Canvas in TouchDesigner

Hi everyone, I’m trying to create a canvas in TouchDesigner where a user can type a key to trigger a brushstroke. I’ve created the brushstroke, but I’m having trouble with:

  • Instancing the brushstroke on command: How can I create a instance of the brushstroke when user typed on the keyboard?
  • Establishing coordinates(tx,ty): How do I determind the (tx,ty) coordinates for the brushstroke based on the key pressed?
  • Stopping the brushstroke and waiting for the next signal: How can I prevent the brushstroke from continuously drawing and make it wait for the next key press?

I’m new to TouchDesigner, please bear with my incorrect terminology. Any help or guidance would be greatly appreciated.

Hi @jaclynpqc,

nice technique!
The Event CHOP might be of help for this and can solve multiple of your requests:

  • given an input it will start an ADSR, you can use that ramp to drive the brushstroke
  • it takes an input where you can specify an always changing x/y for creating brushstrokes at different locations

Check out the OP Snippets for the Event CHOP to see some examples. Hopefully it all makes sense.

cheers
Markus