Don't do anything manually when you can have Adobe After Effects dynamically graph data for you. This tutorial uses AE CC 2020. The end result is not beautiful, so it's on you to figure out how to nest it and make it beautiful!
Step 1: get some data
ourworldindata.org/coronaviru...
Step 2: Clean it up in Excel or other spreadsheet app
Step 3: Create a composition, use the pen tool to draw a two point line
Step 4: Add the CSV to your composition
Step 5: Create an expression at the path of the Shape 1
Step 6: Use the code below
Step 7: Align it
Download the files (improved from the one in the video):
drive.google.com/drive/folder...
What you see in the video if the "Display" composition
The expression (with a few changes to make it better): Change LESSTHAN to the symbol, KZitem doesn't allow it for security reasons.
var numberOfPoints = thisComp.layer("FranceCovidCases.csv")("Data")("Number of Rows");
var spacingForPoints = thisComp.width / numberOfPoints;
var startingPointX = 0;
var thePath = content("Shape 1").content("Path 1").path;
var maximumYValue = effect("maximumYValue")("Slider");
var lineHeight = 0;
var arrayOfPoints = [];
for(var i = 0; i LESSTHAN numberOfPoints; i++) {
var data = thisComp.layer("FranceCovidCases.csv");
var dailyCases = data.footage("FranceCovidCases.csv").dataValue([3,i])
lineHeight = linear(dailyCases, 0, effect("maximumYValue")("Slider"), content("Shape 1").content("Stroke 1").strokeWidth/2, thisComp.height)*-1;
arrayOfPoints[i] = [startingPointX, lineHeight];
startingPointX +=spacingForPoints;
}
thePath.createPath(points=arrayOfPoints, inTangents=[], outTangents=[], is_closed=false);
Find out more about expressions:
expressions.aenhancers.com/pat...
• Using After Effects CC...
www.animoplex.com
Негізгі бет After Effects CSV to Path - Create Line Graph From Expressions and Data
Пікірлер: 18