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