Invisible material inside another translucent material

Hi!
I want to create materia which will be translucent or invisible inside another mesh with translucent material. Can someone point me a way to do this?