Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions random rotation/position text expression animation

  • random rotation/position text expression animation

    Posted by Bert Beltran on December 6, 2012 at 5:19 pm

    Hello All,

    Just want to create a random text animation using expressions. I saw Dan Ebberts random motion expression and I wanted to expand on that. I threw that expression into the text animator z rotation and each character rotated randomly. But they were all in sync/ moving at the same rate and direction. Is there a way to break that, to have it so each character rotates at different speeds and at different rotation directions. As well as to be able to control the start and end, meaning the “text” is in its hero position and then the animation beings and doesn’t need to stop just as long as the characters don’t rotate all the way back around. Im going to have it so that they rotate behind another layer that will be in front of it. If there needs to be a ending position I would say 180 degrees.

    Hopefully this is something that can be done all in one layer. rather than having to create multiply layers.

    Muchos Thank You’s

    Dan Ebberts replied 13 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    December 6, 2012 at 7:11 pm

    I’m not sure this does exactly what you want, but it would be a good place to start. After you enable per-character 3D and add a Rotation Animator, set the Z Rotatlion amount to 180, add an Expression Selector and delete the Range Selector, add this expression to the Amount property of the Expression Selector:


    minVal = 0;
    maxVal = 100;
    minDur = .5;
    maxDur = 1;

    seedRandom(textIndex,true);
    prev = next = inPoint;
    prevVal = nextVal = 0;
    while (time >= next){
    prev = next;
    prevVal = nextVal;
    next += random(minDur,maxDur);
    nextVal = random(minVal,maxVal);
    }
    ease(time,prev,next,prevVal,nextVal);

    If you want it to also rotate the other way, change the first line to:

    minVal = -100;

    Dan

  • Bert Beltran

    December 7, 2012 at 1:09 am

    Thanks Dan this is a really good start. I also added a position animator and place the y position at -450. this causes it to act as if they are falling down.

    Rotation Expression

    All that needs to change is to have the text stop rotating back up. Basically I’m looking for each character rotate and fall out of frame.

    Muchos Thank You’s

  • Dan Ebberts

    December 7, 2012 at 1:34 am

    It think I’d approach that a little differently. Try setting the z rotation to -120 and the y position to 450 and use this:

    minDelay = .5;
    maxDelay = 1;
    minDur = .75;
    maxDur = 1;
    minVal = 100;
    maxVal = 150;

    seedRandom(textIndex,true);
    delay = random(minDelay,maxDelay);
    dur = random(minDur,maxDur);
    val = random(minVal,maxVal);
    easeIn(time,delay,delay+dur,0,val)

    Dan

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