Grease Pencil: Rim by layer only?

I was not sure where else to ask this. Look at how the Rim effect works.


The idea is to make this work per layer, rather than per whole object.
Is this possible? If so, may I ask how?
Edit 1: As described here: