Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ANOTHER scrolling credits question

  • ANOTHER scrolling credits question

    Posted by Jake Mendez on May 13, 2011 at 5:33 pm

    Ok, so i built this rolling credits for a project several months back. some names got added, so the “roll” is longer, but they need it to fit in the same time span. i cant figure out how to adjust the expression/layer to CHANGE THE END POINT. here is the expression i am using. i tried bumping the 4 to 4.5 but it doesnt like fractions, and 5 is too much. thanks in advance

    rate = 4.; //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)];
    }

    Kevin Camp replied 15 years ago 3 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    May 13, 2011 at 6:27 pm

    What do you mean by “it doesn’t like fractions”?
    4.5 should work.

    Dan

  • Jake Mendez

    May 13, 2011 at 6:36 pm

    anything other than a whole number gives me an error:

    after effects warning: bad digit in number expression disabled

    error occured at line 1.
    comp: CC_CREDIT_ROLL’
    Layer: 6 (‘CC_Credit_Roll_P2.ai)
    property: position

  • Dan Ebberts

    May 13, 2011 at 6:44 pm

    This works for me:


    rate = 4.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)];
    }

    Are you doing it a different way?

    Dan

  • Jake Mendez

    May 13, 2011 at 6:50 pm

    of course it was user error. i had an extra period after the 4, so it was reading 4.5. thanks.

  • Kevin Camp

    May 14, 2011 at 1:18 am

    I think that expression was intended to keep whole pixel movement per frame, thus preventing the ‘wavy’ text edges that will otherwise happen due to antialiasing…

    You might be better off scaling the text slightly to allow it to fit the duration at 4 px/frame.

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

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