-
Color change driven by JSON-file
Dear Expression wizzards,
I’m trying to achive this
https://www.youtube.com/watch?v=JPiyOGyjWvI
but not with the hight of the shape layer but with its fill.There is a JSON-file imported into my project. In there sections for individual counties (for example “[0]”) with several days (“day0” to “day45”) and corresponding values (lets say 50 to 2000).
In my comp is also a Null-Object wich has two Color Control effects to provide two different colors. One is for a low value, the other fo a high value.
Over time I’d like to fade between these colors according to the values in my data.
I alredy tried but I’m stuck with this (and I haven’t magage to complete it):
c = footage("tripcountsPerCountyPerDate.json").sourceData; // data-source imported in projectv1 = c[0].day0; // first value of "0"
v2 = c[0].day45; // last value of "0"???
startcolor = thisComp.layer("Null 42").effect("Color 1")("Color");
endcolor = thisComp.layer("Null 42").effect("Color 2")("Color");ease(time, 1, 29, startcolor, endcolor);
linear(v,0,100,startcolor,endcolor);
So is it linear or ease at the end? And how do I get the values to drive the color?
Thank you so much and best wishes
SebastianSebastian Martinez
CGI-Designer
Cologne, Germany
AE, AI, PS, 3ds max, C4dSome contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.
