Skip to content

Instantly share code, notes, and snippets.

@MarissaJ
Created November 20, 2018 22:50
Show Gist options
  • Save MarissaJ/56114f1ca4ec484f8c4e53683c01d30e to your computer and use it in GitHub Desktop.
Save MarissaJ/56114f1ca4ec484f8c4e53683c01d30e to your computer and use it in GitHub Desktop.
After Effects 2019 Sort Column Numbers Descending
values = [];
for(i=0;i<=thisComp.layer("Data-Driven-Sample.csv")("Data")("Number of Rows")-1;i++) {   
  values.push(thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Number Data")("Number Data " + i).value);
} values.sort((a, b) => b - a);
@MarissaJ
Copy link
Author

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