Increase a value with "onclick"


Hello, ( again )

Here my question.

Is it possible to increase a range of values like “rotx” with the on click and not to have the usual "onclick (animate “rotx”, 0,10,20,30,40, all the way to 360)

So in the end, I have a button that rotate a component on an axes by x° every time a click on it.

I imagine I have to create a variable with =rotx+rotationAngle but it’s beyond me. math logic still is my big bad wolf…

thanks for anytips


switch_move_rotate.skp (23.6 KB)


as always, I miss a little thing and as always Sir Pcmoor, you enlightened me !

Thank you again for your help kind Sir !

until next time ._.