Forum Replies Created

  • Marius Ihlar

    August 13, 2020 at 7:02 am in reply to: Running an expression a single time

    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

  • Marius Ihlar

    May 11, 2016 at 9:02 am in reply to: Disable auto keyframes for audio effects

    Same problem! found a solution?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy