ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text Characters Rotation Randomness

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Eduard Radu
Text Characters Rotation Randomness
on Apr 27, 2020 at 7:58:30 pm

Hi,

I need each character rotates in different direction. Starting with no animation at inPoint and finishing with no animation at outPoint of the text layer. The middle of the layer of course at maximum value.

Eduard


Return to posts index

Dan Ebberts
Re: Text Characters Rotation Randomness
on Apr 27, 2020 at 8:48:06 pm

Hmm... there are only two directions for rotation, so I think we need a more detailed description of what you're after.

Dan



Return to posts index

Eduard Radu
Re: Text Characters Rotation Randomness
on Apr 27, 2020 at 10:22:23 pm

Hi Dan,

I have this expression applied to the Amount of a Text Animator, Expression Selector. I want the animation to return to its original start position when the Current Time Indicator gets to the end of the layer.

minVal = -10;
maxVal = 10;
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);

Eduard


Return to posts index


Dan Ebberts
Re: Text Characters Rotation Randomness
on Apr 27, 2020 at 10:32:36 pm

Something like this maybe:


seedRandom(textIndex,true);
myVal = random(-100,100);
midPoint = (inPoint+outPoint)/2;
if (time < midPoint)
linear(time,inPoint,midPoint,0,myVal)
else
linear(time,midPoint,outPoint,myVal,0)



Dan



Return to posts index

Eduard Radu
Re: Text Characters Rotation Randomness
on Apr 27, 2020 at 11:23:05 pm

Yes. I can understand and edit this one.
Thanks Dan!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]