in mentalray there is a Ray Type Switch node which determines how the surface will look for different rays (eye, reflection, refraction, GI, …)
for example
i plug green shader into eye input of the ray type node
red shader into reflection input
blue into refraction input
yellow into GI
.
.
.
and when rendered, the surface will be green, but when you see it reflected in another object it is red, when it is behind a transparent surface it is blue and it casts yellow color in GI
is something similar acheivable in Mantra? (in one pass of course)