I am writing to request an enhancement to Adobe After Effects' scripting capabilities, specifically a more efficient way to ascertain the number of rows in a CSV file using the dataValue method.
Presently, I am able to get a count of rows using the layer("Data")("Number of Rows") method. However, this is not practical for my use case as my projects often involve up to 50 different CSV files. Integrating all these CSV files into my composition unnecessarily complicates and bloats the setup. It would be far more convenient if there was a way to directly access the number of rows using the footage("data.csv").dataValue method.
The necessity for this feature stems from the need to iterate through a column of data for sorting purposes. While I have developed a workaround to address this issue in the meantime, it lacks the fluidity and full automation that a built-in feature could provide. I believe that Adobe already has the backend data analysis capabilities to facilitate this feature.
An example of a makeshift function I use is the following:
javascript
Copy code
function getRowCount() {
var i = 0;
while (true) {
var value = footage("data.csv").dataValue([0,i]);
if (value == null || value == "") {
break;
}
i++;
}
return i;
}
However, this workaround does not function correctly when encountering blank rows in the CSV or inconsistencies in the first column.
Given Adobe's history of innovative and user-focused solutions, I am confident that adding this feature will greatly enhance the user experience and increase the versatility of Adobe After Effects. I look forward to seeing this functionality implemented in the future updates.
- Thank you for considering my request