I'd like to transform all the comp of a projet in render where the layers are white when they're close to the camera and black when they're far away (with all the gray scale between). It's working if I'm using the tint filter and ajusting the parameters by hand but I'm sure that it's possible to do it simply with expression ou script. May be just something that could change the tint according the Z position (from white to black) or ajusting the transparency (in this case I could change the background to black).
Does someone as a solution ?
thanks (and sorry for my poor english