Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
After Effects Data Driven Expression- Display Column Data Based on Time
values = [];
for(i=0;i<=thisComp.layer("Data-Sample.csv")("Data")("Number of Rows")+2;i++) {   
  values.push(thisComp.layer("Data-Sample.csv")("Data")("Outline")("Number Data")("Number Data " + i).value);
} v=values.join(",");
string=v;
array=string.split(",");
l=array.length;
sec=Math.floor(time/effect("Slider Control")("Slider"));
if(sec<l){
array[sec];
}else{
"end";
}
@MarissaJ

This comment has been minimized.

Copy link
Owner Author

commented Nov 20, 2018

For more on how to use this expression and download a sample After Effects 2019 file here https://www.fluxvfx.com/data-driven-expressions-for-after-effects-2019/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.