Increment number in expression to get data from CSV
Hello everyone,
I am trying to duplicate comp and have the after effect expression to pull the data from CSV file according to the comp index. Im currently getting error and wondering if someone can help me out on this.
Heres my code:
var compIndex = parseInt(thisComp.index);
var dataValue = footage("data.csv").dataValue([compIndex - 1, 5]);
dataValue;If comp index is 1, then the location of the data for comp 1 is [0, 5];
Then when I duplicate this comp, then the comp index will be 2, and it will pull data from [1, 5] in the csv file;
Hope this make sense. Appreciate the help!
