Referencing material functions from inside a custom expression

Hmm, thanks for the hints! That gives me a place to start. I’ll post back in this thread in a week or two if I make some progress.