Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Spreeder like Text Generator

  • Spreeder like Text Generator

    Posted by Nimrod Zin on March 20, 2017 at 10:52 am

    Hi,
    I’m trying to create a Spreeder effect from a text paragraph. It should shoot the words and keep them centered, and if possible fit them to a certain text box.
    Ideally I want to be able to use markers as an index to control how much time each word stays on the screen, and not just let it run in a specific frequency.
    I looked around here and on the net but can’t really wrap my head around all the different expressions that will allow me to create what I’m looking for,
    Thanks for any guidance you can provide…
    Nimrod.

    Nimrod Zin replied 9 years, 5 months ago 3 Members · 5 Replies
  • 5 Replies
  • Scott Mcgee

    March 20, 2017 at 12:46 pm

    https://www.youtube.com/watch?v=a3YZzChyKsg

    This should help you out. I can’t think of an easier way.

    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.

  • Nimrod Zin

    March 20, 2017 at 1:35 pm

    Thanks for the quick response.
    This is a good solution for controlling the apperancd and time.
    The thing I can’t find as well is how to describe the word index of a paragraph. I want to just copy paste any text, 100 of words or more… I will probably have to change it from time to time, and I don’t want to type and keyframe every word.
    Thanks again…

  • Nimrod Zin

    March 20, 2017 at 3:20 pm

    Cna I use .split to seperate the paragraph into a word array? if so how?
    Where can I read about .split? I didn’t manage to find anything about it in anywhere.

  • Kevin Camp

    March 20, 2017 at 4:03 pm

    try this:

    txt = text.sourceText;
    words = txt.split(‘ ‘);

    n = 0;
    if ( marker.numKeys > 0 ) {
    n = marker.nearestKey( time ).index;
    if ( marker.key( n ).time > time ) {
    n--;
    }
    }

    if ( n == 0 ) {
    "";
    } else {
    words[ Math.min( n, words.length ) - 1 ];
    }

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Nimrod Zin

    March 20, 2017 at 4:27 pm

    With your powers combined… I’m Captain Planet!!!
    Thanks for all your help.
    What Kevin suggested hit the spot almot 100%, The markers work wonderfully, but it still split the paragraph to words only untill breaks…
    I found this and this did it perfectly
    words = txt.split(/\s+/);
    I don’t know how to read it and why it works but it did.
    Thanks Folks…

    That’s what I did with it for now.

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