Skip to main content
matthewh85113767
Participant
December 5, 2019
Question

CSV Expression Bug

  • December 5, 2019
  • 1 reply
  • 186 views

I'm trying to used code from example 8 to display data from a CSV file over time...

 

https://fluxvfx.com/blogs/blog-fluxvfx/data-driven-expressions-for-after-effects-2019

 

When I try applying it in my project I begin running into issues as well as when I try using my data in her project.  

 

------

Error: Error: property or method named 'Number Data 10' in Class 'Group' is missing or does not exist.  It may have been renamed, moved, deleted, or the name may have been mistyped

-----

 

Number Data is in her CSV file which can be downloaded at the top of the page along with the example project.  I'm wondering if I'm needing to rename something Group, I'm not seeing where that's coming from...but I also don't see it being defined in the code either.

 

Would appreciate any advice!

 

Regards,

Matt

This topic has been closed for replies.

1 reply

matthewh85113767
Participant
December 5, 2019

 

values = [];
for(i=0;i<=thisComp.layer("Data-Driven-Sample.csv")("Data")("Number of Rows")+2;i++) {   
  values.push(thisComp.layer("Data-Driven-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";
}

This is the original code...I've been changing Number Data to reflect the column heading in my CSV file as well as the name of the CSV file.