Hi there!
Checking through the internet for this question, this is the only thing I found on the topic.
Do you remember more in detail what made it work in the end?
I’m a noob with expressions. But i’m also trying to make my expression read every second, because right now the solution is way to slow.
I have a list of 100 names that updates every second through looping keyframes. I would love to see my expression being calculated only 1 time per second instead of 25 times.
This is my code:
MyArray = footage("Members_687732 (5).csv");
pageflipper = thisComp.layer("Page flipper").effect("Slider Control")("Slider");
i = 0;
//csv is one name (current)
//MyArray is the whole array of names
rowcount = 0;
nameList = "";
for (i; i < pageflipper; i++){
csv = rowcount + 1 + ' ' + footage("Members_687732 (5).csv").dataValue([0, i]);
rowcount++;
//shortens too long names
if (csv.length > 20) {
csv = csv.substr(0,20) + "-\r" + rowcount + 1 + ' ' + csv.substr(20, 40);
rowcount++;
isTwoRowsName = true;
} else {
isTwoRowsName = false;
}
if(rowcount > (pageflipper - 100)) {
if (rowcount == pageflipper - 1 && isTwoRowsName == true) {
break;
}
nameList += csv + "\r";
}
if(rowcount >= pageflipper - 1){
break;
}
}
nameList