-
Expression for json-file
Hi,
I’ve never used a .json file in an expression before. This is the data, and I’ve downloaded the file to my computer and imported it to After Effects:
https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/owid-covid-data.jsonI want to make a list with all countries, and I want the list to change depending on the variable total_deaths_per_million for every date.
I realise my expression is far off. My first problem is that I can’t work out how I get the right variable. With the expression I’ve tried I get the error message “Couldn’t turn result into numeric value”.
First of all, is it even possible to create an expression that works like I want it to? Anyone have any good advices?
Kind regards
footage("owid-covid-data.json").sourceData;p1="AFG"[1].total_deaths_per_million;
p2="AFG"[2].total_deaths_per_million;exDepth = 360
min = 0;
max = 1000;startVal = ((p1 - min)/max)*exDepth;
endVal = (p2/max)*exDepth;z = ease(time, 1, 4, startVal, endVal);
x=640;
y=z;[x,y];