I’m using a .csv in my project (not in my actual comp) and i’m attempting to use Hex code from the .csv to drive my color control expression.
compName = thisComp.name;
hexColor = footage(“players_cards – one_team.csv”).dataValue([37,compName]);
r = (hexColor >> 16)/255;
g = ((hexColor & 0x00ff00) >> 8)/255;
b = (hexColor & 0xff)/255;
hsl = rgbToHsl([r,g,b,1]);
the idea being the comp is labeled “0” and when i make duplicates, it will increment up and make new versions of the same player card, with new data from the .csv file.