Creating Material Tags for Compound Structure Layers

Since you have the location already, this should get you started: Auto Material Tag - #6 by Alban_de_Chasteigner