Passing Information from Object Material to Post Process Material

Just a thought, but have you messed around with using the custom stencils?