Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Altering Scrolling Credits Expression

Tagged: 

  • Altering Scrolling Credits Expression

    Posted by Viktoria Grasmück on June 22, 2023 at 1:04 pm

    Hello,

    I found this expression below, which is great. Thank you to whoever wrote it!

    The scrolling starts at the first marker and I was wondering if there is a way to let the scroll stop at a certain time or second marker. Please let me know, how to alter the expression, if it is possible.

    rate = 5; //value in px/sec.

    if (marker.numKeys > 0){

    if (time > marker.key(1).time){

    value – [0,rate*timeToFrames(time-marker.key(1).time)];

    }else{

    value;

    }

    }else{

    value – [0,rate*timeToFrames(time-inPoint)];

    }

    Viktoria Grasmück replied 2 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    June 22, 2023 at 1:21 pm

    Here is one way to do it:

    rate = 5; //value in px/sec.
    if (marker.numKeys){
    t = timeToFrames(time - marker.key(1).time);
    if (t>0){
    if (marker.numKeys>1) {
    // more than 1 marker, stop scrolling at marker 2
    value - [0,rate]*clamp(t,0,timeToFrames(marker.key(2).time - marker.key(1).time));
    } else {
    // keep scrolling
    value - [0,rate*t];
    }
    }else{
    value;
    }
    }else{
    value - [0,rate*timeToFrames(time-inPoint)];
    }
  • Viktoria Grasmück

    August 16, 2023 at 11:21 am

    Thank you very much for your help!

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