Mapping material to materialdata struct. Can now get the material from group using only a string.