Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random Shuffle from both sides

  • Random Shuffle from both sides

    Posted by Brad Hodgson on November 21, 2010 at 3:40 pm

    Hey all,

    This seems like a very simple problem, but I’m having trouble making it happen easily.

    I need text to randomly fly in horizontally (by character or word… not sure yet) from both sides to end and create a sentence.

    In animation presets, the animation “Random Shuffle” seems like it would work perfectly with some adjustment of the speed of the offset… I can animate it in via characters or words depending on client’s preference… great. But, I CAN NOT for the life of me get it to animate that one sentence in from both sides of the screen… I can obviously duplicate the text layer and reverse the position so it comes in from the opposite side, but it duplicates all the letters twice… and I don’t want to have to manually mask letters out as I need to duplicate this comp several times for several different supers…

    I thought I could just duplicate the animator on the text layer so there are 2 “random shuffle” animators on the same text layer, reverse position of one, but it seems to cancel one out or something… it just won’t work.

    I’m no expert with expressions… so I’m asking for help here. Anyone know of an expression I can add so I can use the random shuffle animation but it fly in from both sides instead of just one?

    Thanks!

    Brad Hodgson

    Brad Hodgson replied 15 years, 5 months ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    November 21, 2010 at 6:16 pm

    Try adding an expression selector (to the existing Animator) with this expression:

    if (textIndex%2) selectorValue else -selectorValue

    Dan

  • Brad Hodgson

    November 21, 2010 at 7:55 pm

    Dan, this works perfect! Thank you tons!

    Brad Hodgson

  • Brad Hodgson

    November 22, 2010 at 4:58 pm

    Dan, can I ask one more question? This does work great… just wondering, in case I need it, is there a value I can add to this expression that brings in the letters/words randomly from both sides as it does now, but that makes them hit their end offset mark at the same time?

    Brad Hodgson

  • Dan Ebberts

    November 22, 2010 at 5:03 pm

    I’m not sure what you mean. You want all the letters to arrive at their destinations at the same time? That would kill the randomness, wouldn’t it? You must mean something else.

    Dan

  • Brad Hodgson

    November 22, 2010 at 5:14 pm

    Hmm… I guess I wish I could keep the randomness of the letters scooting on, but decrease the end value so all the letters land at their destination closer to the same time… as of now, some letters land and sit for a bit before the others hit… and I can’t seem to change that with any of the animation controls…so more of a word soup from both sides, but the speed of each letter fly on is relative to where they end up at their end destinations closer to the same time.

    Maybe that doesn’t work… if not, no worries… your expression was a huge time saver in accomplishing what I needed to do!

    Brad Hodgson

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