Animate circle outline from 0 - 360 with mouse input

Hey all,

I’m very new to all this and still wrapping my head around TD.
I’d like to animate a circle outline growing from 0 to 360 on the mouse click. Whenever I let go of the button, it would slowly animate back to 0. And so on.

I have created a circle SOP and hooked it up to a wire to have the outline. I noticed the circle has Arc Angles parameters but I’m confused as to which CHOPS to choose from in order to achieve this animation.

I was wondering if anyone wouldn’t mind letting me know what’s a good start to achieving this sort of behavior.

Thank you very much.

hey @OriLogic ,

welcome to the forum.
Here’s an example. If you drag this tox file into your TD network editor, you’ll see it creates a new container COMP. Now hold left mouse button to form a circle.

Experiment with the settings of the Filter CHOP, or instead use a Lag CHOP or Trigger CHOP if you want to define how your animation curve looks.

Instead of a Mouse In CHOP you can also use a Panel CHOP to make it listen only to mouse clicks on a specific Panel COMP. Or instead use a Button COMP.

Have fun!
hold_lmb-to-form-circle.tox (1.5 KB)

For further inspiration check out the Operator Snippets

Thank you so much for this!