I read that the simplest way to do a shadow pass in mental ray is to turn off "primary visibility" in the object's render stats, while leaving "cast shadows" on. Works fine, but what if you have dozens of objects littering your scene? Do you really have to turn off visibility forty-eight times? Isn't there an easier way, say, in the render globals? Any ideas?