Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Sinescrolling Text

  • Sinescrolling Text

    Posted by Gordon Bush on March 3, 2011 at 12:20 pm

    Hi Folks at creativeCow,

    i am trying to get a script together that will let me scroll a text layer over the screen, moving along a sine axis, like in these old C64/Amiga-Demos from the 80s, remember? If not, see here:

    https://www.youtube.com/watch?v=8jNsIQpBgHA

    i have started to play around with the sine-expressions from Dan Ebbert, but can’t get any decent result, because i can’t figure out, how to access the charaters via scripting. Any help leading to solve this problem would be fantastic!

    Greets!

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Gordon Bush replied 15 years, 2 months ago 3 Members · 3 Replies
  • 3 Replies
  • Kevin Camp

    March 3, 2011 at 11:03 pm

    you could have your script call up the wave warp effect… it will do the same sine distortion in the example. you may want it applied to an adjustment layer so the text x-position can be animated, or maybe do the x-position animation on the transform effect prior to the wave warp effect…

    the distortion would be a little different, but you could also put the text on a path that is a sine shape. you would need to create the sine path/mask on the text layer, then choose the path in text properties (text>path options). you can animate the ‘margins’ to move it along the path, but to make the path ‘wavy’ you’d need to also animate the path itself.

    i’m not sure exactly how to manipulate the individual character positions for a text line with expressions, but you can access per-character properties by selecting the text layer and choosing animation>animate text and choose ‘position’ (or any property). this will bring up a bunch of new property controls… you may be able to manipulate things here to get what you want. you can add another selector called ;expression’ that may help out here, but i’ve really never used it… maybe some one else can add some insight to that.

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Dan Ebberts

    March 4, 2011 at 1:10 am

    This might not be exactly what you want, but it might get you started. Add a text animator for position. Set the animator’s y position value to 100. Add an expression selector. Delete the range selector. Enter this expression for the amount:

    freq = .5;
    selectorValue*Math.sin(time*freq*Math.PI*2 + Math.PI*2* textIndex/textTotal)

    Adjust freq value and the the y position value until you get close to something you like.

    Dan

  • Gordon Bush

    March 4, 2011 at 11:31 am

    Hey Dan,

    thanks for this quick help, the result looks pretty decent. My problem was, that i didn’t know that i can use the expression selector on “by character”. So now i am going to add a second variable for the amplitude of the sine.

    The tips from Kevin also look pretty interesting, because this will drive the sine “per pixel” not “per char”, i will try out this also and give feedback, thanks to you both and have a nice weekend!

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