Canvas reveal, dynamic transparency /mask?

Hi!

How can i make a layer become transparent while touching/painting over it?

The idea is to reveal a layer behind while “painting”. 

Sorry if this is not the appropiate place for asking.

Thank you!

Ok, sorry for the dumb question, i already found the snapshot eraser sample.

Ok, sorry for the dumb question, i already found the snapshot eraser sample.