Yep! Custom depth is exactly what I’m using to mask, within my PP materials. I’ve got a handful of comments on Tom’s post, from years ago, as a matter of fact. 
I was only asking about the tinting function… I guess I just need to take some time to learn how to explore the source code properly.