I noticed an issue with your json, which was it flagging issues for me when importing it? But it was the Zone: “One” and Zone: “Two”. It appeared to not like the “”, but after deleting and retyping it let me import it.
otherwise this worked fine for me. Also I included the part that uses the layers name to reference it so you would only need to reference the array you want [0] or [1], based on your json layer.
txt = footage(“pitchmap.json”).sourceData;
a = thisLayer.name;
input = txt[0][a];
if ( input <= 5 && input >= 0 ){
([0,255,210,255]/255)}
else if ( input <= 10 && input >= 6 ){
([0,255,190,255]/255)}
else if ( input <= 15 && input >= 11 ){
([0,255,170,255]/255)}
else if ( input <= 20 && input >= 16 ){
([0,255,150,255]/255)}
else if ( input <= 25 && input >= 21 ){
([232,255,0,255]/255)}
else if ( input <= 30 && input >= 26 ){
([252,210,0,255]/255)
}else{
([255,255,255,255]/255)};
Don’t forget when exporting you also need to put it onto the timeline otherwise the export will come out wrong.