-
JSON & Animation
I’ve been learning how to use the new JSON capabilities in Ae over this past week and while I believe I’ve got the linking down, I’m not sure how to animate them now.
For instance: I made a line graph, basically a line with nubs for each of the 12 months, I used the ‘points follow nulls’ and all that jazz, and it works great, but how can I animate a point up to the number given in my JSON file?
I’ve included the script (and a screen shot) for my January point. So how can I animate up to the number my JSON file is giving it, like I would if I were just animating the position with keyframes?
Are there any good places to learn tasks like this?
eval("var month=" +footage("LineGraph.json").sourceText);temp = month[0].Jan;
min = 0;
max = 100;max_movement = -485;
newBaseline = 769;
myYHeight = ((temp - min) / max) * max_movement + newBaseline;
[value[0], myYHeight]