Press button / keep value

hallo !
i’m new to this nice tool and i have some simple problems.
i want to set clear pin of the renderer to 0 by pressing a key.
i want the pin to keep the 0 until i press the same key again.
let’s say c. i can’t figure out how to do that. i checked the toggle
helpfile but this doesn’t work for my key press thing.
can anyone help me with this?

the next thing is that i want to fade a quad in and out also with one key
only.

please help
dankeschon

mizi

hi mizi,

here is a little patch, wich should answer your question.

greets

KeyReaction.v4p (11.9 kB)

pretty sweet !
danke tonfilm!

if you want to use more than one key, RadioKeyMatch should be the node to look for.