solution from Rob Barrett:
var colorNum = thisLayer.name.split(" ")[0];
if (!isNaN(colorNum)) {
comp("_colorMaster").layer("ColorMaster").effect("ColorControl_"+colorNum)("Color");
} else {
[0,255,0,255]
};
if the layer name starts with 01, 02, 03, 04, etc it will reference the color in the color master, otherwise, it gives is pure green