Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Continuously Scrolling Image Expression

  • Continuously Scrolling Image Expression

    Posted by Bhenson on August 24, 2006 at 8:26 pm

    I have an image that is wider than my composition and have made an expression that scrolls the image horizontally. Eventually I want the image to loop continuously with the right edge of the first instance of the image always butting up to the left edge of the next instance.

    Right now, the first image will track across the screen as needed followed by the next image. Unfortunately, I don’t know how to make this action continuously loop using only two copies of the original image.

    the end result should be that of a continuously scrolling (almost marquee-like) image.

    Here is the expression being used for the first image:

    xPos= time * -200 ;
    yPos = position[1] ;
    [ xPos , yPos ]

    Any suggestions would be appreciated.

    Bhenson replied 19 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 24, 2006 at 8:43 pm

    How about only one copy of the image with the Offset effect with this expression for Shift Center To:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + time*spd

    Dan

  • Dan Ebberts

    August 24, 2006 at 8:59 pm

    It works, but it should really be like this for a horizontal scroll:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + [time*spd,0]

    Or like this for a vertical scroll:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + [0,time*spd]

    Dan

  • Bhenson

    August 29, 2006 at 2:15 pm

    Thanks for the advice… it solved my problem. I ended up using a slider and linking it to the speed variable.

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