Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Horizontal Scrolling Text

  • Horizontal Scrolling Text

    Posted by Tiago Cav on June 13, 2015 at 9:12 pm

    I will do a Lower Third with Horizontal Scrolling Text using expressions;

    I have:

  • A comp dimensions 1920×1080;
  • A text with parent in form of expression to follow Shape position;
  • A shape with expression “SourceRectAtTime()” to follow text size + offset with slider control to increase 96px of width size;
  • I need a expression to Horizontal Scrolling Text, to left side, with:

  • Delay of 150 frames to start.
  • Simulated keyframes to start and stop only when the right side of the shape enter fully into the area of the composition, that is, when the right margin of the text arrives at the exact right margin of the composition area image, the expression stop motion in position.
  • I need to change text. And consequently, the shape size changes; use keyframes would cause the speed of the scroll changed depending on the text size and the scrolling does not end when the edge of the shape reached the edge of the composition.

  • Therefore I want a constant speed, always the same. Without limit of time.
  • The limit will be the shape of position with their full right side within the comp.

    I was using this expression, but is not limited when the text comes completely within the composition, but yes, by time:
    mult = 2;
    t = ease(time, 5, 30, 0, 25);
    temp = content("Rectangle 1").content("Rectangle Path 1").size[0];
    value - [t*mult/thisComp.frameDuration-temp/2,0]

    I used “ease” to the expression begins and ends with a smoothness in the motion position.

  • I need that softness.
  • See image, please:

    The expression end so:

    Thanks.

Tiago Cav replied 10 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
    • Walter Soyka

      June 16, 2015 at 12:22 am

      Calculate the difference in pixels between the starting and ending positions, then calculate the amount of time necessary to move that distance at your fixed speed.

      Walter Soyka
      Designer & Mad Scientist at Keen Live [link]
      Motion Graphics, Widescreen Events, Presentation Design, and Consulting
      @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

    • Tiago Cav

      June 16, 2015 at 5:18 am

      I try this:

      s1=content("Rectangle 1").transform.scale[0]
      s2=content("Rectangle 1").content("Rectangle Path 1").size[0]
      s=s1*s2/100
      p=100
      w=width
      t=ease(time, 5, s/p, 0, s-w);
      if(s>w){
      [t,value[1]];
      }else{
      value;
      }

      Work well. Thanks.

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