Forum Replies Created

  • Thanks again, but I just found a workaround.
    It won’t make sense to post it here, because it is very Porject-specific.
    But your first answer was the key to even finding a workaround 🙂

  • Awesome! That was exactly what I needed. Thank you so much 🙂

    But the code caused another problem.

    To change the position of the null layer (with the slider from above added, now called “Schieberegler”) I need to cycle through all the previous frames in order to find the starting time for my ease.

    I used Dan’s expression from Motionscript.com. It kind of works, but with more than 3 objects, it says “Timeout while waiting for the engine”.

    My thought on solving this is to only let it check for the trigger event between now (time) and the last trigger event.
    How do I add that to the expression?

    threshold = 1650;

    P = effect("Einstellungen für Schieberegler")("Schieberegler");

    above = false;
    frame = Math.round(time / thisComp.frameDuration);
    while (true){
    t = frame * thisComp.frameDuration;
    if (above){
    if (P.valueAtTime(t) < threshold){
    frame++;
    break;
    }
    }else if (P.valueAtTime(t) >= threshold){
    above = true;
    }
    if (frame == 0){
    break;
    }
    frame--
    }
    if (! above){
    t = 0;
    }else{
    t = frame * thisComp.frameDuration;
    }
    if(P == 0)value
    else
    {ease(time*200-t*200, 0, 100, [0,0], [0,1650-P])}

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